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