Added an example for contentScripts.register (#325)

* Added an example for contentScripts.register

* Use messaging instead of getBackgroundPage
This commit is contained in:
wbamberg
2018-01-26 13:11:06 -08:00
committed by GitHub
parent 5d20372527
commit 33d8fba6a8
8 changed files with 145 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
{
"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"]
}
}