mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
* 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>
573 B
573 B
borderify
This add-on injects JavaScript into mozilla.org web pages.
What it does
This extension includes 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
From this example, you see how to inject content scripts declaratively using manifest.json.