upgrade to manifest V3

- add localizations
- fix permissions

Unfortunately, manifest V3 isn't as explicit compared to manifest V2. That's what I dislike, especially as it gives less power to UBO.
This commit is contained in:
buzz-lightsnack-2007 2024-03-17 16:08:50 +08:00
parent 2c99782dbb
commit f5a68eaa1a

View file

@ -1,19 +1,29 @@
{ {
"background": { "manifest_version": 3,
"scripts": [ "shopAI.js" ] "name": "__MSG_manifest_name__",
}, "description": "__MSG_manifest_description__",
"browser_action": { "version": "0",
"permissions": [ "tabs", "activeTab", "storage"],
"action": {
"default_icon": "gui/icons/logo_no_tiny.png", "default_icon": "gui/icons/logo_no_tiny.png",
"default_popup": "gui/popup.htm" "default_popup": "gui/popup.htm"
}, },
"description": "Shop wisely with AI!",
"icons": { "content_scripts": [
"1024": "gui/icons/logo.png", {
"512": "gui/icons/logo_tiny.png" "matches": ["http://*/*", "https://*/*"],
}, "js": ["shopAI.js"]
"manifest_version": 2, }
"name": "ShopAI", ],
"options_page": "gui/popup.htm",
"permissions": [ "tabs", "webRequest", "webRequestBlocking", "*://*/*" ], "icons": {
"version": "1" "1024": "gui/icons/logo.png",
"512": "gui/icons/logo_tiny.png"
},
"options_page": "gui/popup.htm",
"default_locale": "en"
} }