GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mdn/webextensions-examples: Example Firefox add-ons created using the WebExtensions API

BranchesTags
Open more actions menu

Latest commit

 

History

580 Commits
580 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
annotate-page
annotate-page
 
 
apply-css
apply-css
 
 
beastify
beastify
 
 
bookmark-it
bookmark-it
 
 
borderify
borderify
 
 
chill-out
chill-out
 
 
commands
commands
 
 
content-script-register
content-script-register
 
 
context-menu-copy-link-with-types
context-menu-copy-link-with-types
 
 
contextual-identities
contextual-identities
 
 
cookie-bg-picker
cookie-bg-picker
 
 
devtools-inspector-sidebar
devtools-inspector-sidebar
 
 
devtools-panels
devtools-panels
 
 
discogs-search
discogs-search
 
 
dnr-block-only
dnr-block-only
 
 
dnr-dynamic-with-options
dnr-dynamic-with-options
 
 
dnr-redirect-url
dnr-redirect-url
 
 
dynamic-theme
dynamic-theme
 
 
emoji-substitution
emoji-substitution
 
 
eslint-example
eslint-example
 
 
export-helpers
export-helpers
 
 
favourite-colour
favourite-colour
 
 
find-across-tabs
find-across-tabs
 
 
firefox-code-search
firefox-code-search
 
 
forget-it
forget-it
 
 
google-userinfo
google-userinfo
 
 
history-deleter
history-deleter
 
 
http-response
http-response
 
 
imagify
imagify
 
 
latest-download
latest-download
 
 
list-cookies
list-cookies
 
 
menu-accesskey-visible
menu-accesskey-visible
 
 
menu-demo
menu-demo
 
 
menu-labelled-open
menu-labelled-open
 
 
menu-remove-element
menu-remove-element
 
 
menu-search
menu-search
 
 
mocha-client-tests
mocha-client-tests
 
 
native-messaging
native-messaging
 
 
navigation-stats
navigation-stats
 
 
notify-link-clicks-i18n
notify-link-clicks-i18n
 
 
open-irc-links
open-irc-links
 
 
open-my-page-button
open-my-page-button
 
 
page-to-extension-messaging
page-to-extension-messaging
 
 
permissions
permissions
 
 
private-browsing-theme
private-browsing-theme
 
 
proxy-blocker
proxy-blocker
 
 
quicknote
quicknote
 
 
root-cert-stats
root-cert-stats
 
 
runtime-examples
runtime-examples
 
 
script-on-click
script-on-click
 
 
selection-to-clipboard
selection-to-clipboard
 
 
session-state
session-state
 
 
store-collected-images
store-collected-images
 
 
stored-credentials
stored-credentials
 
 
tabs-tabs-tabs
tabs-tabs-tabs
 
 
theme-integrated-sidebar
theme-integrated-sidebar
 
 
theme-switcher
theme-switcher
 
 
themed-icons
themed-icons
 
 
themes
themes
 
 
top-sites
top-sites
 
 
user-agent-rewriter
user-agent-rewriter
 
 
user-script-register
user-script-register
 
 
userScripts-mv3
userScripts-mv3
 
 
webpack-modules
webpack-modules
 
 
window-manipulator
window-manipulator
 
 
.editorconfig
.editorconfig
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.prettierrc.json
.prettierrc.json
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
examples.json
examples.json
 
 
examples.schema.json
examples.schema.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
validate.js
validate.js
 
 

Repository files navigation

webextensions-examples Build Status

https://github.com/mdn/webextensions-examples

Maintained by Mozilla's Add-ons team.

WebExtensions are a way to write browser extensions: that is, programs installed inside a web browser that modify the behavior of the browser or web pages loaded by the browser. WebExtensions are built on a set of cross-browser APIs, so WebExtensions written for Google Chrome, Opera, or Edge will, in most cases, run in Firefox too.

The "webextensions-examples" repository is a collection of simple, complete, and installable WebExtensions. The examples show how to use the WebExtensions APIs, and you can use them as a starting point for your WebExtensions.

For an index of all the examples, see the "Example extensions" page on MDN.

The examples are made available under the Mozilla Public License 2.0.

How to use "webextensions-examples"

To use the repository, first clone it.

Each example is in a top-level folder and includes a short README explaining what it does. To see how an example works, install it in Firefox by following the installation instructions.

To find your way around a WebExtension's internal structure, have a look at the Anatomy of a WebExtension page on MDN.

To use these examples in Firefox, use the most recent release of Firefox. However, most examples work with earlier releases.

A few examples rely on APIs that are only available in pre-release versions of Firefox. Where this is the case, the example declares the minimum version that it needs in the strict_min_version attribute of the browser_specific_settings key in the extension's manifest.json file.

Installing an example

Some examples work only on specific domains or pages. Details of any restrictions are provided in each example's README file. None of the examples work in private browsing windows by default, see Extensions in Private Browsing for details.

To run an example extension:

  1. Open Firefox and load the about:debugging page. Click Load Temporary Add-on and select the manifest.json file within the folder of an example extension.
  2. Install the web-ext tool. At the command line, open the example extension's folder and type web-ext run. This launches Firefox and installs the extension automatically. This tool provides some additional development features, such as automatic reloading.

Support for other browsers

These examples are tested in Firefox. They may work in other browsers, if the browser supports the APIs used. Note that these examples all use the browser namespace and promises to work with asynchronous functions. This means the examples won't work in Chrome unless you use the polyfill provided by Mozilla. See the overview of WebExtension APIs for more information.

Learn more

To learn more about developing WebExtensions, see the WebExtensions documentation on MDN for getting started guides, tutorials, and full API reference docs.

Problems?

If you encounter an issue, post a query on the add-ons discourse forum.

If you cannot resolve the issue, file a bug.

Contributing

We welcome contributions, whether they are new examples, new features, bug fixes, or translations of localizable strings. Please see the CONTRIBUTING.md file for more details.

About

Example Firefox add-ons created using the WebExtensions API

developer.mozilla.org/en-US/Add-ons/WebExtensions

Topics

browsermdnwebextensionswebextensions-apis

Resources

Readme
MPL-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

4.5k stars

Watchers

161 watching

Forks

2.6k forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.