From 668b38a4f6cd96609b9a969fe4653b46aec4e712 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Thu, 25 Jul 2024 20:27:04 -0700 Subject: [PATCH] Convert noteblocks for mozilla/add-ons/webextensions folder (#35124) * Convert noteblocks for mozilla/add-ons/webextensions folder This PR converts the noteblocks for the 'mozilla/add-ons/webextensions' folder to GFM syntax, using a [conversion script](https://github.com/queengooborg/mdn-toolkit/blob/main/upgrade-noteblock.js). This is part 7. * Apply suggestions from code review --------- Co-authored-by: Joshua Chen --- .../add-ons/webextensions/api/types/index.md | 3 +-- .../webextensions/api/userscripts/index.md | 9 ++++--- .../api/userscripts/register/index.md | 3 ++- .../userscripts/registereduserscript/index.md | 3 ++- .../registereduserscript/unregister/index.md | 3 ++- .../api/webnavigation/getallframes/index.md | 3 ++- .../api/webnavigation/getframe/index.md | 3 ++- .../webextensions/api/webnavigation/index.md | 3 ++- .../webnavigation/onbeforenavigate/index.md | 3 ++- .../api/webnavigation/oncommitted/index.md | 3 ++- .../api/webnavigation/oncompleted/index.md | 3 ++- .../oncreatednavigationtarget/index.md | 3 ++- .../webnavigation/ondomcontentloaded/index.md | 3 ++- .../webnavigation/onerroroccurred/index.md | 3 ++- .../onhistorystateupdated/index.md | 3 ++- .../onreferencefragmentupdated/index.md | 3 ++- .../api/webnavigation/ontabreplaced/index.md | 3 ++- .../transitionqualifier/index.md | 3 ++- .../api/webnavigation/transitiontype/index.md | 3 ++- .../api/webrequest/blockingresponse/index.md | 3 ++- .../webrequest/filterresponsedata/index.md | 3 ++- .../handlerbehaviorchanged/index.md | 3 ++- .../api/webrequest/httpheaders/index.md | 3 ++- .../webextensions/api/webrequest/index.md | 3 ++- .../index.md | 3 ++- .../api/webrequest/onauthrequired/index.md | 6 +++-- .../api/webrequest/onbeforeredirect/index.md | 3 ++- .../api/webrequest/onbeforerequest/index.md | 3 ++- .../webrequest/onbeforesendheaders/index.md | 3 ++- .../api/webrequest/oncompleted/index.md | 3 ++- .../api/webrequest/onerroroccurred/index.md | 3 ++- .../api/webrequest/onheadersreceived/index.md | 3 ++- .../api/webrequest/onresponsestarted/index.md | 3 ++- .../api/webrequest/onsendheaders/index.md | 3 ++- .../api/webrequest/requestfilter/index.md | 3 ++- .../api/webrequest/resourcetype/index.md | 3 ++- .../webrequest/streamfilter/ondata/index.md | 3 ++- .../api/webrequest/uploaddata/index.md | 3 ++- .../webextensions/api/windows/create/index.md | 3 ++- .../api/windows/createtype/index.md | 3 ++- .../webextensions/api/windows/get/index.md | 9 ++++--- .../webextensions/api/windows/getall/index.md | 3 ++- .../api/windows/getcurrent/index.md | 6 +++-- .../api/windows/getlastfocused/index.md | 6 +++-- .../webextensions/api/windows/index.md | 3 ++- .../api/windows/onboundschanged/index.md | 3 ++- .../api/windows/oncreated/index.md | 3 ++- .../api/windows/onfocuschanged/index.md | 6 +++-- .../api/windows/onremoved/index.md | 3 ++- .../webextensions/api/windows/remove/index.md | 3 ++- .../webextensions/api/windows/update/index.md | 3 ++- .../webextensions/api/windows/window/index.md | 3 ++- .../api/windows/window_id_current/index.md | 3 ++- .../api/windows/window_id_none/index.md | 3 ++- .../api/windows/windowstate/index.md | 3 ++- .../api/windows/windowtype/index.md | 3 ++- .../webextensions/background_scripts/index.md | 9 ++++--- .../index.md | 3 ++- .../build_a_cross_browser_extension/index.md | 9 ++++--- .../chrome_incompatibilities/index.md | 3 ++- .../webextensions/content_scripts/index.md | 24 ++++++++++++------- .../content_security_policy/index.md | 3 ++- .../index.md | 3 ++- .../add-ons/webextensions/examples/index.md | 6 +++-- .../extending_the_developer_tools/index.md | 6 +++-- .../implement_a_settings_page/index.md | 9 ++++--- .../mozilla/add-ons/webextensions/index.md | 3 ++- .../interact_with_the_clipboard/index.md | 6 +++-- .../internationalization/index.md | 9 ++++--- .../manifest.json/commands/index.md | 6 +++-- .../content_security_policy/index.md | 6 +++-- .../declarative_net_request/index.md | 3 ++- .../externally_connectable/index.md | 5 ++-- .../manifest.json/icons/index.md | 9 ++++--- .../manifest.json/incognito/index.md | 6 +++-- .../webextensions/manifest.json/index.md | 6 +++-- .../optional_permissions/index.md | 3 ++- .../manifest.json/permissions/index.md | 6 +++-- .../manifest.json/protocol_handlers/index.md | 3 ++- .../manifest.json/storage/index.md | 5 ++-- .../manifest.json/theme/index.md | 12 ++++++---- .../manifest.json/theme_experiment/index.md | 6 +++-- .../manifest.json/user_scripts/index.md | 3 ++- .../web_accessible_resources/index.md | 6 +++-- .../webextensions/match_patterns/index.md | 6 +++-- .../webextensions/modify_a_web_page/index.md | 15 ++++++++---- .../webextensions/native_manifests/index.md | 3 ++- .../webextensions/native_messaging/index.md | 15 ++++++++---- .../index.md | 6 +++-- .../user_interface/browser_styles/index.md | 8 ++++--- .../user_interface/devtools_panels/index.md | 3 ++- .../webextensions/user_interface/index.md | 3 ++- .../what_are_webextensions/index.md | 3 ++- .../work_with_the_cookies_api/index.md | 5 ++-- .../webextensions/working_with_files/index.md | 9 ++++--- .../working_with_the_tabs_api/index.md | 8 ++++--- .../your_first_webextension/index.md | 9 ++++--- 97 files changed, 306 insertions(+), 157 deletions(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/types/index.md b/files/en-us/mozilla/add-ons/webextensions/api/types/index.md index e0feb1499f8803d..138e5f86f7862d5 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/types/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/types/index.md @@ -17,8 +17,7 @@ Defines the `BrowserSetting` type, which is used to represent a browser setting. {{WebExtExamples("h2")}} -> **Note:** -> +> [!NOTE] > This API is based on Chromium's [`chrome.types`](https://developer.chrome.com/docs/extensions/reference/types/) API.