webextensions-examples
webextensions-examples copied to clipboard
Example Firefox add-ons created using the WebExtensions API
### Description I changed the "beastify" extension to 1. to run with manifest version 3 2. to make compatible with Chrome and CC cleaner browsers ### Motivation The changes demonstrate...
When managed storage isn't available (i.e. : using Firefox 122 on macOS), the example code throws an exception while trying to restore the value from managed storage and never proceeds...
Firefox version: 116.0.3 Ubuntu 22.04 the standard borderify addon is not working. Reproduce steps: 1. git clone borderify code 2. in Firefox, select menu "Add-ons and Themes" >> "Debug Add-ons"...
### What information was incorrect, unhelpful, or incomplete? It doesn't seem like there is a concrete example of an extension that gets text/data from the page (`activeTab`) using a background...
[context-menu-copy-link-with-types](https://github.com/mdn/webextensions-examples/tree/master/context-menu-copy-link-with-types) uses a content script because when the example was written execCommand didn't work in background pages; now they do so the example should be updated to call execCommand from...
### What information was incorrect, unhelpful, or incomplete? The native messaging example provides a contrived app that bounces a message back as follows: https://github.com/mdn/webextensions-examples/tree/main/native-messaging/app This example is useless in the...
[examples.json](https://github.com/mdn/webextensions-examples/blob/9433f842d6295db366c399df752332d78a9cc859/examples.json) lists all samples plus relevant extension APIs in `javascript_apis`. But there are several extension APIs with significant functionality in its manifest keys. By significant, I mean not just because...
This repo has an `.eslintrc`, added in #244: https://github.com/mdn/webextensions-examples/blob/main/.eslintrc.json ... but it is stuck in 2017 and it doesn't appear to be enforced (evidenced by the plenty of failures when...
updateActiveTab has ambiguous meaning, most prominent of which doesn't mean what we are actually trying to do. ### Description updateActiveTab has ambiguous meaning, most prominent interpretation of which is not...
### What information was incorrect, unhelpful, or incomplete? the code example does not run on two different OS' and the documentation does not explain why. ### What did you expect...