webextensions-examples
webextensions-examples copied to clipboard
Example Firefox add-ons created using the WebExtensions API
### Description ### Motivation ### Additional details ### Related issues and pull requests
### Description The setup instructions for `native-messaging` are specific to `python3`. Likewise, `ping_pong_win.bat` has the command `call python3`. https://github.com/mdn/webextensions-examples/blob/2ecc2198b33313d029e8f78ba38297f6dfedd8f6/native-messaging/app/ping_pong_win.bat#L3 There is a script to ensure you've got everything configured correctly,...
### What information was incorrect, unhelpful, or incomplete? saved https://github.com/mdn/webextensions-examples/tree/main/favourite-colour ### What did you expect to see? saved ### Do you have any supporting links, references, or citations? _No response_...
[MV3 userScripts API] Is Firefox MV3 intentionally not supporting `browser.runtime.onMessage`? Why?
(Sorry I am not sure where should I post this question.) Is Firefox MV3 intentionally not supporting `browser.runtime.onMessage` in MV3 userScripts API? Why? For Chrome, it supports both sending (`browser.runtime.sendMessage`)...
### Description Updates the borderify and beastify examples to use Manifest V3. ### Motivation These examples are used in the MDN getting started "your first extension" and "your second extension"...
Earlier this year Firefox [announced plans](https://blog.mozilla.org/addons/2025/04/03/rethinking-extension-data-consent-clarity-consistency-and-control/) to build data collection consent prompts into Firefox. Shortly thereafter it became [available in Nightly](https://blog.mozilla.org/addons/2025/05/09/new-extension-data-consent-experience-now-available-in-firefox-nightly/) for testing. As of November 3, [AMO requires](https://blog.mozilla.org/addons/2025/10/23/data-collection-consent-changes-for-new-firefox-extensions/) that...