* MDN get started tutorial examples to manifest V3
* Migrate to Scripting API
* Updated to readmes and code comments
* Apply suggestions to readmes from review
Co-authored-by: Simeon Vincent <svincent@gmail.com>
* Convert choose_beast.js to async
* Apply suggestions from review
Co-authored-by: Simeon Vincent <svincent@gmail.com>
* Updated illustrated API list for beastify
* Apply suggestions from review
Co-authored-by: Rob Wu <rob@robwu.nl>
---------
Co-authored-by: Simeon Vincent <svincent@gmail.com>
Co-authored-by: Rob Wu <rob@robwu.nl>
The MV2-specific userScripts example is currently associated with the
"userScripts.register" API. While this is the correct API name, the
MDN documentation is actually at `userScripts_legacy/register`.
To make sure that the example is rendered in the right location,
change "userScripts" to "userScripts_legacy".
... and for completeness also add `runtime.onMessage` to the MV3
example, since that example uses this API.
These examples are designed to be cross-browser compatible.
In particular, these extensions do not use `background` because there is
currently no single manifest that can support both Firefox and Chrome,
due to the lack of event page support in Chrome, and the lack of service
worker support in Firefox.
Three examples demonstrating the use of the declarativeNetRequest API:
- dnr-block-only: One minimal example demonstrating the use of static
DNR rules to block requests.
- dnr-redirect-url: One minimal example demonstrating the use of static
DNR rules to redirect requests.
- dnr-dynamic-with-options: A generic example demonstrating how host
permissions can be requested and free forms to input DNR rules.
* Remove required theme aliases
Replaced uses of headerURL, accentcolor, and textcolor with theme_frame, frame, and tab_background_text. Tested and confirmed all extensions working as expected.
* Fixed another reference to headerURL
Co-authored-by: Richard Bloor <rbloor@atlassian.com>
* New user script example
This PR is the content from [PR 426](https://github.com/mdn/webextensions-examples/pull/426), originally submitted by Irene, addressing the feedback on the readme content.
* Including the following changes:
* renaming the content script example and updating the readme file to reference the user script example
* renaming the user script example and versioning as v1
* addressing feedback on the user script example: limiting input to hosts and script, addressing code and HTML/CSS comments
I haven't changed the "eating" script example, I feel it is useful to have similar demonstrations in the content and user script examples to make it easier for developers to compare and contrast.
* Various changes for feedback
* Added a user script ID that is stored in the registered script's metadata and then used in the API script to key the data stored in local storage
* Update to emphasize scoping of local storage using an ID provided in the user script metadata
Co-authored-by: Richard Bloor <rbloor@atlassian.com>
* proxy-blocker updates
These changes replace the use of the deprecated `proxy.register` (PAC file) with `proxy.onRequest` to handle the proxying of requests.
* Changes as per feedback
* Fixed typo
* Addressed feedback relating to issue with variable initialization after enable/disable
* Typo fix
* The changes as suggested by @wbamberg
There are a couple of queries about the item for themes:
* I was unclear whether to delete the javascript_apis key or use an empty list - I've used an empty list.
* The macros suggests it would be safe to use HTML formatting in the description, so I have done so to create the list of themes (rather than split them out individually)
* Adds an Emoji Substitution example
* Monitors DOM for additions after initial load
* Fixes typos
* Fixes substitution ordering bug
* <textarea> bug fix. Also removes confusion between Elements and Nodes.