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:
rebloor
2026-01-28 07:15:58 +13:00
committed by GitHub
parent 04e5fa59cf
commit e1253d9ad3
8 changed files with 118 additions and 78 deletions

View File

@@ -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.