mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 22:38:31 +02:00
* Added an example for contentScripts.register * Use messaging instead of getBackgroundPage
37 lines
642 B
JSON
37 lines
642 B
JSON
{
|
|
|
|
"manifest_version": 2,
|
|
"name": "User script",
|
|
"version": "1.1",
|
|
|
|
"applications": {
|
|
"gecko": {
|
|
"id": "user-script-example@mozilla.org",
|
|
"strict_min_version": "59.0a1"
|
|
}
|
|
},
|
|
|
|
"description": "Demonstration of contentScripts.register.",
|
|
"icons": {
|
|
"48": "icons/if_source_code_103710.svg"
|
|
},
|
|
|
|
"permissions": [
|
|
"<all_urls>"
|
|
],
|
|
|
|
"browser_action": {
|
|
"default_icon": {
|
|
"32" : "icons/if_source_code_103710.svg"
|
|
},
|
|
"default_title": "User script",
|
|
"default_popup": "popup/user-script.html",
|
|
"browser_style": true
|
|
},
|
|
|
|
"background": {
|
|
"scripts": ["background.js"]
|
|
}
|
|
|
|
}
|