chore(manifest): add background script, remove default icon and popup and upgrade version

This commit is contained in:
wanhose 2021-04-08 23:53:26 +02:00
parent 38b82af3c9
commit 95393fde08

View File

@ -1,27 +1,36 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Do Not Consent", "name": "Do Not Consent",
"version": "3.2.4", "version": "3.3.0",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_appDesc__", "description": "__MSG_appDesc__",
"icons": { "icons": {
"16": "assets/icon16.png", "16": "assets/icon16.png",
"32": "assets/icon32.png",
"48": "assets/icon48.png", "48": "assets/icon48.png",
"128": "assets/icon128.png" "128": "assets/icon128.png"
}, },
"browser_action": { "browser_action": {
"default_icon": "assets/icon32.png", "default_icon": "assets/icon-disabled.png",
"default_popup": "popup.html",
"default_title": "Do Not Consent" "default_title": "Do Not Consent"
}, },
"author": "wanhose", "author": "wanhose",
"background": {
"persistent": false,
"scripts": ["scripts/background.js"]
},
"content_scripts": [ "content_scripts": [
{ {
"all_frames": true,
"js": ["scripts/content.js"], "js": ["scripts/content.js"],
"matches": ["http://*/*", "https://*/*"], "matches": ["http://*/*", "https://*/*"],
"run_at": "document_start" "run_at": "document_start"
} }
], ],
"web_accessible_resources": ["data/*", "scripts/popup.js", "styles/*"] "permissions": ["storage", "tabs", "unlimitedStorage"],
"web_accessible_resources": [
"data/elements.txt",
"scripts/popup.js",
"styles/index.css",
"styles/reset.css"
]
} }