mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 14:59:12 +02:00
MDN get started tutorial examples to manifest V3 (#608)
* 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>
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
# borderify
|
||||
|
||||
**This add-on injects JavaScript into web pages. The `addons.mozilla.org` domain disallows this operation, so this add-on will not work properly when it's run on pages in the `addons.mozilla.org` domain.**
|
||||
This add-on injects JavaScript into mozilla.org web pages.
|
||||
|
||||
## What it does
|
||||
|
||||
This extension just includes:
|
||||
This extension includes a content script, "borderify.js", that is injected into any pages
|
||||
under "mozilla.org/" or any of its subdomains.
|
||||
|
||||
* a content script, "borderify.js", that is injected into any pages
|
||||
under "mozilla.org/" or any of its subdomains
|
||||
**The `addons.mozilla.org` domain doesn't allow scripts to be injected into its pages. Therefore, this extension doesn't work on pages in the `addons.mozilla.org` domain.**
|
||||
|
||||
The content script draws a border around the document.body.
|
||||
|
||||
## What it shows
|
||||
|
||||
* how to inject content scripts declaratively using manifest.json
|
||||
From this example, you see how to inject content scripts declaratively using manifest.json.
|
||||
|
||||
Reference in New Issue
Block a user