Introducing FirefoxOS 2.5 Add-Ons
FirefoxOS 2.5 Add-Ons package is composed of JavaScript, CSS and other assets, but it doesn’t run as a standalone app.
Add-ons on Firefox OS are even more powerful and it provides customization not only to the browser, but the whole phone experience, including tweaks to the homescreen and system apps.
The manifest is very simple, just like any other FxOS app. The “matches” field works like a filter to where the add-on will be loaded. Filters determines if an app is affected by the add-on.
{ “manifest_version”: 1, “name”: “Add-On Berries”, “description”: “FirefoxOS add-on”, “version”: “1.0”, “author”: “Quen-Quen Potter”, “content_scripts”: [{ “matches”: [“app://berries.berrycreative.ppg.br”], “css”: [“css/style.css”], “js”: [“js/fxos.js”] }], “icons”: { “96”: “/icons/96.png” “128”: “/icons/128.png” }
The manifest above matches only BerriesApp and the website.
Learn more about FirefoxOS Add-On at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Add-ons









