Added an example for contentScripts.register

This commit is contained in:
Will Bamberg
2017-12-12 09:02:11 -06:00
parent 8b5f320c1a
commit 6377f7952a
8 changed files with 138 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"]
}
}