From 27e4f01ca4d9cb0d1d4d0357dad313476eb39318 Mon Sep 17 00:00:00 2001 From: Hoarfroster Date: Mon, 23 Sep 2024 21:12:14 +0800 Subject: [PATCH] chore(zh-cn): handle urls of chrome.com (#23704) Co-authored-by: A1lo --- files/zh-cn/.markdownlint.jsonc | 7 +++++++ files/zh-cn/glossary/accessibility/index.md | 2 +- files/zh-cn/glossary/developer_tools/index.md | 2 +- files/zh-cn/glossary/first_cpu_idle/index.md | 2 +- files/zh-cn/glossary/synthetic_monitoring/index.md | 2 +- .../what_are_browser_developer_tools/index.md | 4 ++-- .../responsive_images/index.md | 2 +- .../performance/measuring_performance/index.md | 4 ++-- .../cross_browser_testing/javascript/index.md | 2 +- .../testing_strategies/index.md | 2 +- .../deployment/index.md | 2 +- .../webextensions/api/action/colorarray/index.md | 2 +- .../webextensions/api/action/disable/index.md | 2 +- .../webextensions/api/action/enable/index.md | 2 +- .../api/action/getbadgebackgroundcolor/index.md | 2 +- .../webextensions/api/action/getbadgetext/index.md | 2 +- .../api/action/getbadgetextcolor/index.md | 2 +- .../webextensions/api/action/getpopup/index.md | 2 +- .../webextensions/api/action/gettitle/index.md | 2 +- .../api/action/getusersettings/index.md | 2 +- .../api/action/imagedatatype/index.md | 2 +- .../add-ons/webextensions/api/action/index.md | 2 +- .../webextensions/api/action/onclicked/index.md | 2 +- .../api/action/setbadgebackgroundcolor/index.md | 2 +- .../webextensions/api/action/setbadgetext/index.md | 2 +- .../api/action/setbadgetextcolor/index.md | 2 +- .../webextensions/api/action/seticon/index.md | 2 +- .../webextensions/api/action/setpopup/index.md | 2 +- .../webextensions/api/action/settitle/index.md | 2 +- .../webextensions/api/alarms/alarm/index.md | 2 +- .../webextensions/api/alarms/clear/index.md | 2 +- .../webextensions/api/alarms/clearall/index.md | 2 +- .../webextensions/api/alarms/create/index.md | 2 +- .../add-ons/webextensions/api/alarms/get/index.md | 2 +- .../webextensions/api/alarms/getall/index.md | 2 +- .../add-ons/webextensions/api/alarms/index.md | 2 +- .../webextensions/api/alarms/onalarm/index.md | 2 +- .../api/bookmarks/bookmarktreenode/index.md | 2 +- .../bookmarktreenodeunmodifiable/index.md | 2 +- .../webextensions/api/bookmarks/create/index.md | 2 +- .../api/bookmarks/createdetails/index.md | 2 +- .../webextensions/api/bookmarks/get/index.md | 2 +- .../api/bookmarks/getchildren/index.md | 2 +- .../webextensions/api/bookmarks/getrecent/index.md | 2 +- .../api/bookmarks/getsubtree/index.md | 2 +- .../webextensions/api/bookmarks/gettree/index.md | 2 +- .../add-ons/webextensions/api/bookmarks/index.md | 2 +- .../webextensions/api/bookmarks/move/index.md | 2 +- .../webextensions/api/bookmarks/onchanged/index.md | 2 +- .../api/bookmarks/onchildrenreordered/index.md | 2 +- .../webextensions/api/bookmarks/oncreated/index.md | 2 +- .../api/bookmarks/onimportbegan/index.md | 2 +- .../api/bookmarks/onimportended/index.md | 2 +- .../webextensions/api/bookmarks/onmoved/index.md | 2 +- .../webextensions/api/bookmarks/onremoved/index.md | 2 +- .../webextensions/api/bookmarks/remove/index.md | 2 +- .../api/bookmarks/removetree/index.md | 2 +- .../webextensions/api/bookmarks/search/index.md | 2 +- .../webextensions/api/bookmarks/update/index.md | 2 +- .../api/browseraction/colorarray/index.md | 2 +- .../api/browseraction/disable/index.md | 2 +- .../api/browseraction/enable/index.md | 2 +- .../browseraction/getbadgebackgroundcolor/index.md | 2 +- .../api/browseraction/getbadgetext/index.md | 2 +- .../api/browseraction/getbadgetextcolor/index.md | 2 +- .../api/browseraction/getpopup/index.md | 2 +- .../api/browseraction/gettitle/index.md | 2 +- .../api/browseraction/imagedatatype/index.md | 2 +- .../webextensions/api/browseraction/index.md | 2 +- .../api/browseraction/onclicked/index.md | 2 +- .../browseraction/setbadgebackgroundcolor/index.md | 2 +- .../api/browseraction/setbadgetext/index.md | 2 +- .../api/browseraction/setbadgetextcolor/index.md | 2 +- .../api/browseraction/seticon/index.md | 2 +- .../api/browseraction/setpopup/index.md | 2 +- .../api/browseraction/settitle/index.md | 2 +- .../api/browsingdata/datatypeset/index.md | 2 +- .../webextensions/api/browsingdata/index.md | 2 +- .../api/browsingdata/removaloptions/index.md | 2 +- .../webextensions/api/browsingdata/remove/index.md | 2 +- .../api/browsingdata/removecache/index.md | 2 +- .../api/browsingdata/removecookies/index.md | 2 +- .../api/browsingdata/removedownloads/index.md | 2 +- .../api/browsingdata/removeformdata/index.md | 2 +- .../api/browsingdata/removehistory/index.md | 2 +- .../api/browsingdata/removelocalstorage/index.md | 2 +- .../api/browsingdata/removepasswords/index.md | 2 +- .../api/browsingdata/removeplugindata/index.md | 2 +- .../api/browsingdata/settings/index.md | 2 +- .../api/captiveportal/canonicalurl/index.md | 2 +- .../add-ons/webextensions/api/clipboard/index.md | 4 ++-- .../api/clipboard/setimagedata/index.md | 4 ++-- .../webextensions/api/commands/command/index.md | 2 +- .../webextensions/api/commands/getall/index.md | 2 +- .../add-ons/webextensions/api/commands/index.md | 2 +- .../webextensions/api/commands/oncommand/index.md | 2 +- .../webextensions/api/cookies/cookie/index.md | 2 +- .../webextensions/api/cookies/cookiestore/index.md | 2 +- .../add-ons/webextensions/api/cookies/get/index.md | 2 +- .../webextensions/api/cookies/getall/index.md | 2 +- .../api/cookies/getallcookiestores/index.md | 2 +- .../add-ons/webextensions/api/cookies/index.md | 2 +- .../webextensions/api/cookies/onchanged/index.md | 2 +- .../api/cookies/onchangedcause/index.md | 2 +- .../webextensions/api/cookies/remove/index.md | 2 +- .../add-ons/webextensions/api/cookies/set/index.md | 2 +- .../add-ons/webextensions/api/devtools/index.md | 2 +- .../api/devtools/inspectedwindow/index.md | 4 ++-- .../webextensions/api/devtools/network/index.md | 2 +- .../webextensions/api/devtools/panels/index.md | 4 ++-- .../api/dom/openorclosedshadowroot/index.md | 2 +- .../api/downloads/acceptdanger/index.md | 2 +- .../webextensions/api/downloads/cancel/index.md | 2 +- .../webextensions/api/downloads/download/index.md | 2 +- .../api/downloads/downloaditem/index.md | 2 +- .../add-ons/webextensions/api/downloads/index.md | 2 +- .../webextensions/api/events/event/index.md | 2 +- .../add-ons/webextensions/api/events/index.md | 2 +- .../add-ons/webextensions/api/events/rule/index.md | 2 +- .../webextensions/api/events/urlfilter/index.md | 2 +- .../api/extension/getextensiontabs/index.md | 2 +- .../webextensions/api/extension/getviews/index.md | 2 +- .../api/extension/inincognitocontext/index.md | 2 +- .../extension/isallowedfileschemeaccess/index.md | 2 +- .../webextensions/api/extension/lasterror/index.md | 2 +- .../webextensions/api/extension/onrequest/index.md | 2 +- .../api/extension/onrequestexternal/index.md | 2 +- .../api/extension/setupdateurldata/index.md | 2 +- .../webextensions/api/extension/viewtype/index.md | 2 +- .../api/extensiontypes/imagedetails/index.md | 2 +- .../api/extensiontypes/imageformat/index.md | 2 +- .../webextensions/api/extensiontypes/index.md | 2 +- .../api/extensiontypes/runat/index.md | 2 +- .../add-ons/webextensions/api/history/index.md | 4 +--- .../add-ons/webextensions/api/i18n/index.md | 4 +--- .../add-ons/webextensions/api/idle/index.md | 4 +--- .../add-ons/webextensions/api/menus/index.md | 2 +- .../api/runtime/connectnative/index.md | 4 +--- .../webextensions/api/runtime/getmanifest/index.md | 4 +--- .../add-ons/webextensions/api/runtime/index.md | 4 +--- .../webextensions/api/runtime/onconnect/index.md | 4 +--- .../api/runtime/openoptionspage/index.md | 4 +--- .../api/runtime/platformarch/index.md | 4 +--- .../webextensions/api/runtime/platformos/index.md | 4 +--- .../webextensions/api/runtime/sendmessage/index.md | 2 +- .../api/runtime/sendnativemessage/index.md | 4 +--- .../webextensions/api/sessions/session/index.md | 4 +--- .../add-ons/webextensions/api/storage/index.md | 4 +--- .../webextensions/api/tabs/capturetab/index.md | 2 +- .../api/tabs/capturevisibletab/index.md | 2 +- .../webextensions/api/tabs/connect/index.md | 2 +- .../add-ons/webextensions/api/tabs/create/index.md | 2 +- .../webextensions/api/tabs/detectlanguage/index.md | 2 +- .../webextensions/api/tabs/discard/index.md | 2 +- .../webextensions/api/tabs/duplicate/index.md | 2 +- .../webextensions/api/tabs/executescript/index.md | 2 +- .../add-ons/webextensions/api/tabs/get/index.md | 2 +- .../webextensions/api/tabs/getallinwindow/index.md | 2 +- .../webextensions/api/tabs/getcurrent/index.md | 2 +- .../webextensions/api/tabs/getselected/index.md | 2 +- .../webextensions/api/tabs/getzoom/index.md | 2 +- .../api/tabs/getzoomsettings/index.md | 2 +- .../add-ons/webextensions/api/tabs/goback/index.md | 2 +- .../webextensions/api/tabs/goforward/index.md | 2 +- .../webextensions/api/tabs/highlight/index.md | 2 +- .../add-ons/webextensions/api/tabs/index.md | 2 +- .../webextensions/api/tabs/insertcss/index.md | 2 +- .../add-ons/webextensions/api/tabs/move/index.md | 2 +- .../webextensions/api/tabs/mutedinfo/index.md | 2 +- .../api/tabs/mutedinforeason/index.md | 2 +- .../webextensions/api/tabs/onactivated/index.md | 2 +- .../api/tabs/onactivechanged/index.md | 2 +- .../webextensions/api/tabs/onattached/index.md | 2 +- .../webextensions/api/tabs/oncreated/index.md | 2 +- .../webextensions/api/tabs/ondetached/index.md | 2 +- .../api/tabs/onhighlightchanged/index.md | 2 +- .../webextensions/api/tabs/onhighlighted/index.md | 2 +- .../webextensions/api/tabs/onmoved/index.md | 2 +- .../webextensions/api/tabs/onremoved/index.md | 2 +- .../webextensions/api/tabs/onreplaced/index.md | 2 +- .../api/tabs/onselectionchanged/index.md | 2 +- .../webextensions/api/tabs/onupdated/index.md | 2 +- .../webextensions/api/tabs/onzoomchange/index.md | 2 +- .../add-ons/webextensions/api/tabs/query/index.md | 2 +- .../add-ons/webextensions/api/tabs/reload/index.md | 2 +- .../add-ons/webextensions/api/tabs/remove/index.md | 2 +- .../webextensions/api/tabs/removecss/index.md | 2 +- .../webextensions/api/tabs/sendmessage/index.md | 2 +- .../webextensions/api/tabs/sendrequest/index.md | 2 +- .../webextensions/api/tabs/setzoom/index.md | 2 +- .../api/tabs/setzoomsettings/index.md | 2 +- .../add-ons/webextensions/api/tabs/tab/index.md | 2 +- .../webextensions/api/tabs/tab_id_none/index.md | 2 +- .../webextensions/api/tabs/tabstatus/index.md | 2 +- .../add-ons/webextensions/api/tabs/update/index.md | 2 +- .../webextensions/api/tabs/windowtype/index.md | 2 +- .../webextensions/api/tabs/zoomsettings/index.md | 2 +- .../api/tabs/zoomsettingsmode/index.md | 2 +- .../api/tabs/zoomsettingsscope/index.md | 2 +- .../api/types/browsersetting/index.md | 4 ++-- .../add-ons/webextensions/api/types/index.md | 2 +- .../api/webnavigation/ondomcontentloaded/index.md | 2 +- .../api/webrequest/requestfilter/index.md | 4 +--- .../webextensions/api/windows/create/index.md | 4 +--- .../add-ons/webextensions/api/windows/index.md | 2 +- .../webextensions/api/windows/windowstate/index.md | 4 +--- .../webextensions/api/windows/windowtype/index.md | 4 +--- .../chrome_incompatibilities/index.md | 14 +++++++------- files/zh-cn/mozilla/add-ons/webextensions/index.md | 2 +- .../webextensions/manifest.json/version/index.md | 2 +- .../webextensions/what_are_webextensions/index.md | 2 +- .../information_for_web_authors/index.md | 2 +- files/zh-cn/web/api/abortcontroller/index.md | 2 +- files/zh-cn/web/api/background_fetch_api/index.md | 2 +- .../api/background_synchronization_api/index.md | 2 +- files/zh-cn/web/api/badging_api/index.md | 2 +- files/zh-cn/web/api/barcode_detection_api/index.md | 2 +- files/zh-cn/web/api/barcodedetector/index.md | 2 +- files/zh-cn/web/api/console/assert_static/index.md | 2 +- files/zh-cn/web/api/console/index.md | 2 +- files/zh-cn/web/api/console/time_static/index.md | 2 +- .../getasfilesystemhandle/index.md | 2 +- .../web/api/document/startviewtransition/index.md | 2 +- .../api/document/visibilitychange_event/index.md | 2 +- files/zh-cn/web/api/document/write/index.md | 2 +- files/zh-cn/web/api/element/setattribute/index.md | 2 +- files/zh-cn/web/api/eyedropper_api/index.md | 2 +- files/zh-cn/web/api/file_system_api/index.md | 4 ++-- .../api/filesystemdirectoryhandle/entries/index.md | 2 +- .../getdirectoryhandle/index.md | 2 +- .../getfilehandle/index.md | 2 +- .../web/api/filesystemdirectoryhandle/index.md | 2 +- .../api/filesystemdirectoryhandle/keys/index.md | 2 +- .../filesystemdirectoryhandle/removeentry/index.md | 2 +- .../api/filesystemdirectoryhandle/resolve/index.md | 2 +- .../api/filesystemdirectoryhandle/values/index.md | 2 +- .../createsyncaccesshandle/index.md | 2 +- .../filesystemfilehandle/createwritable/index.md | 2 +- .../web/api/filesystemfilehandle/getfile/index.md | 2 +- files/zh-cn/web/api/filesystemfilehandle/index.md | 2 +- files/zh-cn/web/api/filesystemhandle/index.md | 2 +- .../web/api/filesystemhandle/issameentry/index.md | 2 +- files/zh-cn/web/api/filesystemhandle/kind/index.md | 2 +- files/zh-cn/web/api/filesystemhandle/name/index.md | 2 +- .../api/filesystemhandle/querypermission/index.md | 2 +- .../filesystemhandle/requestpermission/index.md | 2 +- .../api/filesystemsyncaccesshandle/close/index.md | 2 +- .../api/filesystemsyncaccesshandle/flush/index.md | 2 +- .../filesystemsyncaccesshandle/getsize/index.md | 2 +- .../web/api/filesystemsyncaccesshandle/index.md | 2 +- .../api/filesystemsyncaccesshandle/read/index.md | 2 +- .../filesystemsyncaccesshandle/truncate/index.md | 2 +- .../api/filesystemsyncaccesshandle/write/index.md | 2 +- .../web/api/filesystemwritablefilestream/index.md | 2 +- .../api/filesystemwritablefilestream/seek/index.md | 2 +- .../filesystemwritablefilestream/truncate/index.md | 2 +- .../filesystemwritablefilestream/write/index.md | 2 +- files/zh-cn/web/api/fontdata/blob/index.md | 2 +- files/zh-cn/web/api/fontdata/family/index.md | 2 +- files/zh-cn/web/api/fontdata/fullname/index.md | 2 +- files/zh-cn/web/api/fontdata/index.md | 2 +- .../zh-cn/web/api/fontdata/postscriptname/index.md | 2 +- files/zh-cn/web/api/fontdata/style/index.md | 2 +- files/zh-cn/web/api/local_font_access_api/index.md | 4 ++-- .../zh-cn/web/api/navigator/clearappbadge/index.md | 2 +- files/zh-cn/web/api/navigator/contacts/index.md | 2 +- files/zh-cn/web/api/navigator/index.md | 2 +- files/zh-cn/web/api/navigator/scheduling/index.md | 2 +- files/zh-cn/web/api/navigator/serial/index.md | 2 +- files/zh-cn/web/api/navigator/setappbadge/index.md | 2 +- .../zh-cn/web/api/navigator/useragentdata/index.md | 2 +- files/zh-cn/web/api/navigator/wakelock/index.md | 2 +- files/zh-cn/web/api/navigatoruadata/index.md | 2 +- files/zh-cn/web/api/reporting_api/index.md | 2 +- .../serviceworkerglobalscope/sync_event/index.md | 2 +- .../zh-cn/web/api/subtlecrypto/exportkey/index.md | 4 ++-- .../zh-cn/web/api/urlsearchparams/append/index.md | 2 +- files/zh-cn/web/api/urlsearchparams/index.md | 2 +- .../web/api/urlsearchparams/tostring/index.md | 2 +- .../web/api/user-agent_client_hints_api/index.md | 2 +- files/zh-cn/web/api/view_transitions_api/index.md | 6 +++--- .../zh-cn/web/api/viewtransition/finished/index.md | 2 +- files/zh-cn/web/api/viewtransition/index.md | 2 +- files/zh-cn/web/api/viewtransition/ready/index.md | 2 +- .../web/api/viewtransition/skiptransition/index.md | 2 +- .../api/viewtransition/updatecallbackdone/index.md | 4 ++-- .../web/api/virtualkeyboard/boundingrect/index.md | 2 +- .../virtualkeyboard/geometrychange_event/index.md | 2 +- files/zh-cn/web/api/virtualkeyboard/hide/index.md | 2 +- files/zh-cn/web/api/virtualkeyboard/index.md | 2 +- .../api/virtualkeyboard/overlayscontent/index.md | 2 +- files/zh-cn/web/api/virtualkeyboard/show/index.md | 2 +- files/zh-cn/web/api/virtualkeyboard_api/index.md | 2 +- files/zh-cn/web/api/wakelock/index.md | 2 +- files/zh-cn/web/api/wakelock/request/index.md | 2 +- .../web_workers_api/transferable_objects/index.md | 2 +- .../api/web_workers_api/using_web_workers/index.md | 2 +- files/zh-cn/web/api/webcodecs_api/index.md | 4 ++-- files/zh-cn/web/api/webusb_api/index.md | 2 +- files/zh-cn/web/api/window/navigation/index.md | 2 +- files/zh-cn/web/api/window/pagehide_event/index.md | 4 ++-- .../zh-cn/web/api/window/querylocalfonts/index.md | 2 +- .../web/api/window/showdirectorypicker/index.md | 2 +- .../web/api/window/showopenfilepicker/index.md | 2 +- .../web/api/window/showsavefilepicker/index.md | 2 +- .../web/api/workernavigator/clearappbadge/index.md | 2 +- .../web/api/workernavigator/setappbadge/index.md | 2 +- .../web/api/workernavigator/useragentdata/index.md | 2 +- .../_doublecolon_view-transition-group/index.md | 2 +- .../index.md | 2 +- .../css/_doublecolon_view-transition-new/index.md | 2 +- .../css/_doublecolon_view-transition-old/index.md | 2 +- .../web/css/_doublecolon_view-transition/index.md | 2 +- files/zh-cn/web/css/color-scheme/index.md | 2 +- files/zh-cn/web/css/overscroll-behavior-y/index.md | 2 +- files/zh-cn/web/css/view-transition-name/index.md | 2 +- .../zh-cn/web/html/attributes/rel/preload/index.md | 2 +- files/zh-cn/web/html/viewport_meta_tag/index.md | 2 +- files/zh-cn/web/http/client_hints/index.md | 2 +- .../zh-cn/web/http/headers/device-memory/index.md | 2 +- files/zh-cn/web/http/headers/dpr/index.md | 2 +- .../zh-cn/web/http/headers/sec-ch-ua-arch/index.md | 2 +- .../web/http/headers/sec-ch-ua-bitness/index.md | 2 +- .../headers/sec-ch-ua-full-version-list/index.md | 2 +- .../http/headers/sec-ch-ua-full-version/index.md | 2 +- files/zh-cn/web/http/headers/sec-ch-ua/index.md | 2 +- files/zh-cn/web/http/permissions_policy/index.md | 2 +- files/zh-cn/web/index.md | 2 +- .../inheritance_and_the_prototype_chain/index.md | 4 ++-- .../reference/errors/already_has_pragma/index.md | 2 +- .../global_objects/sharedarraybuffer/index.md | 2 +- files/zh-cn/web/media/autoplay_guide/index.md | 2 +- .../privacy_sandbox/partitioned_cookies/index.md | 2 +- .../progressive_web_apps/guides/caching/index.md | 2 +- .../offline_and_background_operation/index.md | 6 +++--- files/zh-cn/web/tutorials/index.md | 2 +- 336 files changed, 366 insertions(+), 393 deletions(-) diff --git a/files/zh-cn/.markdownlint.jsonc b/files/zh-cn/.markdownlint.jsonc index 6ef149968c88f4..6af1da01b2dc36 100644 --- a/files/zh-cn/.markdownlint.jsonc +++ b/files/zh-cn/.markdownlint.jsonc @@ -61,6 +61,13 @@ "replace": "](/", "searchScope": "text", }, + { + "name": "chrome-dev-mirror-links", + "message": "Use the CN mirror site for developer.chrome.com", + "searchPattern": "/\\]\\(https:\\/\\/developer.chrome.com\\//g", + "replace": "](https://developer.chrome.google.cn/", + "searchScope": "text", + }, { "name": "localhost-links", "message": "Don't use localhost for links", diff --git a/files/zh-cn/glossary/accessibility/index.md b/files/zh-cn/glossary/accessibility/index.md index fea9ccfa921fa8..0e9747e70bc518 100644 --- a/files/zh-cn/glossary/accessibility/index.md +++ b/files/zh-cn/glossary/accessibility/index.md @@ -9,7 +9,7 @@ l10n: _无障碍_(Accessibility,缩写:**A11Y**)意味着让尽可能多的人(包括能力受限的)能够使用网站。实现此目标的最常见做法是确保无障碍技术可以正常访问内容。这些技术包括{{glossary("screen reader", "屏幕阅读器")}}、屏幕放大镜、语音识别工具以及替代输入设备等。 -你可以使用类似 [Lighthouse](https://developer.chrome.com/docs/lighthouse/accessibility/scoring) 和 [Firefox 无障碍检查器](https://firefox-source-docs.mozilla.org/devtools-user/accessibility_inspector/index.html)这样的工具衡量你的网站的无障碍水平。 +你可以使用类似 [Lighthouse](https://developer.chrome.google.cn/docs/lighthouse/accessibility/scoring) 和 [Firefox 无障碍检查器](https://firefox-source-docs.mozilla.org/devtools-user/accessibility_inspector/index.html)这样的工具衡量你的网站的无障碍水平。 {{Glossary("W3C")}} 组织的 {{Glossary("WAI","Web 无障碍倡议")}}(WAI)正式地定义和论述了 Web 无障碍技术。 diff --git a/files/zh-cn/glossary/developer_tools/index.md b/files/zh-cn/glossary/developer_tools/index.md index e545c5d1760f94..c10101131c6976 100644 --- a/files/zh-cn/glossary/developer_tools/index.md +++ b/files/zh-cn/glossary/developer_tools/index.md @@ -16,6 +16,6 @@ l10n: - 维基百科上的 [Web 开发者工具](https://zh.wikipedia.org/wiki/Web开发工具) - [Firefox 开发者工具](https://firefox-source-docs.mozilla.org/devtools-user/index.html) - [Firebug](https://getfirebug.com/)(Firefox 开发者工具的前身) -- chrome.com 上的 [Chrome 开发者工具](https://developer.chrome.com/devtools) +- chrome.com 上的 [Chrome 开发者工具](https://developer.chrome.google.cn/docs/devtools) - apple.com.cn 上的 [Safari 开发者工具](https://support.apple.com/zh-cn/guide/safari-developer/dev073038698/mac) - microsoft.com 上的 [Edge 开发者工具](https://docs.microsoft.com/archive/microsoft-edge/legacy/developer/) diff --git a/files/zh-cn/glossary/first_cpu_idle/index.md b/files/zh-cn/glossary/first_cpu_idle/index.md index abd4c5644efe75..c3f7ae6fdf3be2 100644 --- a/files/zh-cn/glossary/first_cpu_idle/index.md +++ b/files/zh-cn/glossary/first_cpu_idle/index.md @@ -13,4 +13,4 @@ l10n: - 替代首次 CPU 闲置的指标: - [可交互时间](/zh-CN/docs/Glossary/Time_to_interactive) - - [总阻塞时间](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-total-blocking-time/) + - [总阻塞时间](https://developer.chrome.google.cn/docs/lighthouse/performance/lighthouse-total-blocking-time) diff --git a/files/zh-cn/glossary/synthetic_monitoring/index.md b/files/zh-cn/glossary/synthetic_monitoring/index.md index bfcc6cef876bea..ec4e92704f532d 100644 --- a/files/zh-cn/glossary/synthetic_monitoring/index.md +++ b/files/zh-cn/glossary/synthetic_monitoring/index.md @@ -11,7 +11,7 @@ l10n: 通过一致的基准,模拟监控非常适合测量代码更改对性能的影响。然而,它并不一定反映用户的实际体验。 -模拟监控涉及部署脚本来模拟最终用户可能在 Web 应用程序中执行的路径,并报告模拟器体验的性能。流行的模拟监控工具示例包括 [WebPageTest](https://webpagetest.org) 和 [Lighthouse](https://developer.chrome.google.cn/docs/lighthouse/overview/)。测量的流量不是实际用户的流量,而是为收集页面性能数据而综合生成的流量。 +模拟监控涉及部署脚本来模拟最终用户可能在 Web 应用程序中执行的路径,并报告模拟器体验的性能。流行的模拟监控工具示例包括 [WebPageTest](https://webpagetest.org) 和 [Lighthouse](https://developer.chrome.google.cn/docs/lighthouse/overview)。测量的流量不是实际用户的流量,而是为收集页面性能数据而综合生成的流量。 与{{glossary("Real user monitoring", "真实用户监控")}}(RUM)不同,模拟监控提供了一个狭窄的性能视图,不考虑用户差异,使其在获取应用程序性能的基本数据和在开发环境中进行性能抽查方面非常有用。结合其他工具,如网络限制,可以提供对潜在问题区域的极好见解。 diff --git a/files/zh-cn/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md b/files/zh-cn/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md index 339770d8c78086..976e7b93cff377 100644 --- a/files/zh-cn/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md +++ b/files/zh-cn/learn/common_questions/tools_and_setup/what_are_browser_developer_tools/index.md @@ -90,7 +90,7 @@ l10n: 了解更多 Inspector 在不同的浏览器中的细节: - [Firefox 页面检查器](https://firefox-source-docs.mozilla.org/devtools-user/page_inspector/index.html) -- [Chrome DOM 检查器](https://developer.chrome.com/docs/devtools/dom/)(Opera 的 inspector 和它一样) +- [Chrome DOM 检查器](https://developer.chrome.google.cn/docs/devtools/dom)(Opera 的 inspector 和它一样) - [Safari DOM 检查器和样式浏览器](https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/ResourcesandtheDOM/ResourcesandtheDOM.html#//apple_ref/doc/uid/TP40007874-CH3-SW1) ## JavaScript 调试器 @@ -205,7 +205,7 @@ document.querySelector("h1").appendChild(loginImage); 了解更多 JavaScript 控制台在不同浏览器中的细节: - [Firefox Web 控制台](https://firefox-source-docs.mozilla.org/devtools-user/web_console/index.html) -- [Chrome JavaScript 控制台](https://developer.chrome.com/docs/devtools/console/)(Opera 与它相同) +- [Chrome JavaScript 控制台](https://developer.chrome.google.cn/docs/devtools/console)(Opera 与它相同) - [Safari 控制台](https://developer.apple.com/library/safari/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/Console/Console.html#//apple_ref/doc/uid/TP40007874-CH6-SW1) ## 参见 diff --git a/files/zh-cn/learn/html/multimedia_and_embedding/responsive_images/index.md b/files/zh-cn/learn/html/multimedia_and_embedding/responsive_images/index.md index a59523ed1719f5..f21abea1d913df 100644 --- a/files/zh-cn/learn/html/multimedia_and_embedding/responsive_images/index.md +++ b/files/zh-cn/learn/html/multimedia_and_embedding/responsive_images/index.md @@ -116,7 +116,7 @@ web 刚面世时,这样的问题并不存在,在上世纪 90 年代早期至 > [!NOTE] > 在桌面端浏览器测试上面的示例时,如果你把浏览器设到最小宽度,却没有加载更小的图片,请检查一下此时的视口是什么(你可以打开浏览器的 JavaScript 控制台,输入 `document.querySelector('html').clientWidth` 来获得近似视口宽度)。不同的浏览器设置了窗口可以缩小到的最小宽度,它可能比你想的更宽一点。使用移动端浏览器测试时,可以使用类似 Firefox 的 `about:debugging` 页这样的工具,使用桌面端开发者工具检查在移动端加载的页面。 > -> 要查看加载了哪些图像,你可以使用 Firefox 开发者工具的[网络监视器](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/index.html)标签或 Chrome 开发者工具的[网络](https://developer.chrome.com/docs/devtools/network/)面板。对于 Chrome 浏览器,你可能还需要[禁用缓存](https://stackoverflow.com/a/7000899/13725861),以防止它选取已下载的图片。 +> 要查看加载了哪些图像,你可以使用 Firefox 开发者工具的[网络监视器](https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/index.html)标签或 Chrome 开发者工具的[网络](https://developer.chrome.google.cn/docs/devtools/network)面板。对于 Chrome 浏览器,你可能还需要[禁用缓存](https://stackoverflow.com/a/7000899/13725861),以防止它选取已下载的图片。 不支持这些特性的旧版本浏览器,会忽略这些属性,它们直接越过并按常规加载 [`src`](/zh-CN/docs/Web/HTML/Element/img#src) 属性引用的图像文件。 diff --git a/files/zh-cn/learn/performance/measuring_performance/index.md b/files/zh-cn/learn/performance/measuring_performance/index.md index 577b1feff3a0a6..92f2e66ccffeec 100644 --- a/files/zh-cn/learn/performance/measuring_performance/index.md +++ b/files/zh-cn/learn/performance/measuring_performance/index.md @@ -63,7 +63,7 @@ slug: Learn/Performance/Measuring_performance ![Firefox 网络监视器显示已加载的素材列表以及每个素材的加载时间](network-monitor.png) -你还可以查看 [Chrome 的网络监视器文档](https://developer.chrome.com/docs/devtools/network/) +你还可以查看 [Chrome 的网络监视器文档](https://developer.chrome.google.cn/docs/devtools/network) ## 性能监视工具 @@ -71,7 +71,7 @@ slug: Learn/Performance/Measuring_performance ![开发者工具性能面板显示录制 #1. 的瀑布图](perf-monitor.png) -另见 [Chrome 性能工具文档](https://developer.chrome.com/docs/devtools/performance/)。 +另见 [Chrome 性能工具文档](https://developer.chrome.google.cn/docs/devtools/performance)。 ## 性能 API diff --git a/files/zh-cn/learn/tools_and_testing/cross_browser_testing/javascript/index.md b/files/zh-cn/learn/tools_and_testing/cross_browser_testing/javascript/index.md index 630dfa943cbdc6..0406405256b7c8 100644 --- a/files/zh-cn/learn/tools_and_testing/cross_browser_testing/javascript/index.md +++ b/files/zh-cn/learn/tools_and_testing/cross_browser_testing/javascript/index.md @@ -179,7 +179,7 @@ fetch(requestURL).then((response) => { 不幸的是,我们仍然有同样的错误,问题并没有消失。现在让我们使用浏览器开发工具的一个更复杂的特性来调查一下这个问题,它在 Firefox 中被称为 [JavaScript 调试器](https://firefox-source-docs.mozilla.org/devtools-user/debugger/index.html)。 > [!NOTE] -> 其他浏览器中也有类似的工具;Chrome 中的[来源面板](https://developer.chrome.com/docs/devtools/#sources)、Safari 中的调试器(见 [Safari Web 开发工具](https://developer.apple.com/safari/tools/))等。 +> 其他浏览器中也有类似的工具;Chrome 中的[来源面板](https://developer.chrome.google.cn/docs/devtools#sources)、Safari 中的调试器(见 [Safari Web 开发工具](https://developer.apple.com/safari/tools/))等。 在 Firefox 中,调试器标签页大致如图所示: diff --git a/files/zh-cn/learn/tools_and_testing/cross_browser_testing/testing_strategies/index.md b/files/zh-cn/learn/tools_and_testing/cross_browser_testing/testing_strategies/index.md index 430151a8e66467..a31082abc54c55 100644 --- a/files/zh-cn/learn/tools_and_testing/cross_browser_testing/testing_strategies/index.md +++ b/files/zh-cn/learn/tools_and_testing/cross_browser_testing/testing_strategies/index.md @@ -181,7 +181,7 @@ A 级: 模拟器基本上是在计算机内部运行的程序,用于模拟某种设备或特定的设备环境,使你能够更方便地进行一些测试,而无需寻找特定的硬件/软件组合进行测试。 -模拟器可以简单地用于测试设备条件。例如,如果你想快速测试响应式设计中的宽度/高度媒体查询,可以使用 Firefox 的[响应式设计模式](https://firefox-source-docs.mozilla.org/devtools-user/responsive_design_mode/index.html)。Safari 也有类似的模式,可以通过转到“Safari > 首选项”并勾选“显示开发菜单”,然后选择“开发 > 进入响应式设计模式”来启用。Chrome 也有类似的功能:设备模式(参见[使用设备模式模拟移动设备](https://developer.chrome.com/docs/devtools/device-mode/))。 +模拟器可以简单地用于测试设备条件。例如,如果你想快速测试响应式设计中的宽度/高度媒体查询,可以使用 Firefox 的[响应式设计模式](https://firefox-source-docs.mozilla.org/devtools-user/responsive_design_mode/index.html)。Safari 也有类似的模式,可以通过转到“Safari > 首选项”并勾选“显示开发菜单”,然后选择“开发 > 进入响应式设计模式”来启用。Chrome 也有类似的功能:设备模式(参见[使用设备模式模拟移动设备](https://developer.chrome.google.cn/docs/devtools/device-mode))。 然而,通常情况下,你需要安装某种模拟器。你可能需要测试的常见设备/浏览器如下: diff --git a/files/zh-cn/learn/tools_and_testing/understanding_client-side_tools/deployment/index.md b/files/zh-cn/learn/tools_and_testing/understanding_client-side_tools/deployment/index.md index f03b88f002dc5b..f8aeb2e2041d71 100644 --- a/files/zh-cn/learn/tools_and_testing/understanding_client-side_tools/deployment/index.md +++ b/files/zh-cn/learn/tools_and_testing/understanding_client-side_tools/deployment/index.md @@ -316,7 +316,7 @@ Netlify 部分的内容就到此为止。我们可以选择更改 Netlify 项目 - 能否在构建步骤中[压缩图片](https://github.com/ralscha/parcel-plugin-compress)? - 能否将 React 换成[更小的](https://preactjs.com/)依赖? -- 能否添加更多测试来防止糟糕的构建部署,例如[性能审核](https://developer.chrome.com/docs/lighthouse/performance/)? +- 能否添加更多测试来防止糟糕的构建部署,例如[性能审核](https://developer.chrome.google.cn/docs/lighthouse/performance/performance-scoring)? - 能否设置一个通知,令你及时得知部署成功与否? {{PreviousMenu("Learn/Tools_and_testing/Understanding_client-side_tools/Introducing_complete_toolchain", "Learn/Tools_and_testing/Understanding_client-side_tools")}} diff --git a/files/zh-cn/mozilla/add-ons/webextensions/api/action/colorarray/index.md b/files/zh-cn/mozilla/add-ons/webextensions/api/action/colorarray/index.md index 25cefb07b9d56d..1f7923e0b7cc95 100644 --- a/files/zh-cn/mozilla/add-ons/webextensions/api/action/colorarray/index.md +++ b/files/zh-cn/mozilla/add-ons/webextensions/api/action/colorarray/index.md @@ -25,7 +25,7 @@ l10n: {{Compat}} > [!NOTE] -> 该 API 基于 Chromium 的 [`chrome.action`](https://developer.chrome.com/docs/extensions/reference/api/action#type-ColorArray) API。本文衍生于 Chromium 代码中的 [`browser_action.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/browser_action.json)。 +> 该 API 基于 Chromium 的 [`chrome.action`](https://developer.chrome.google.cn/docs/extensions/reference/api/action#type-ColorArray) API。本文衍生于 Chromium 代码中的 [`browser_action.json`](https://chromium.googlesource.com/chromium/src/+/master/chrome/common/extensions/api/browser_action.json)。