moved firefox to manifest v2, it works!

This commit is contained in:
Alphons
2023-12-02 22:52:31 +08:00
parent acba86d325
commit dcb66ca2d3
+23 -51
View File
@@ -1,5 +1,5 @@
{ {
"manifest_version": 3, "manifest_version": 2,
"name": "BetterSEQTA+", "name": "BetterSEQTA+",
"version": "3.2.2", "version": "3.2.2",
"description": "Make SEQTA usable and beautiful! A fork of BetterSEQTA to continue development and add WAY more features!!!", "description": "Make SEQTA usable and beautiful! A fork of BetterSEQTA to continue development and add WAY more features!!!",
@@ -8,7 +8,7 @@
"48": "icons/icon-48.png", "48": "icons/icon-48.png",
"64": "icons/icon-64.png" "64": "icons/icon-64.png"
}, },
"action": { "browser_action": {
"browser_style": true, "browser_style": true,
"default_popup": "interface/index.html#settings", "default_popup": "interface/index.html#settings",
"default_icon": { "default_icon": {
@@ -17,12 +17,17 @@
"64": "icons/icon-64.png" "64": "icons/icon-64.png"
} }
}, },
"permissions": ["tabs", "notifications", "storage"], "permissions": ["tabs", "notifications", "storage", "https://newsapi.org/"],
"host_permissions": ["https://newsapi.org/", "*://*/*"],
"background": { "background": {
"service_worker": "background.js" "scripts": [
}, "browser-polyfill.js",
"optional_permissions": ["declarativeContent"], "background.js"
]
},
"optional_permissions": [
"*://*/*",
"declarativeContent"
],
"content_scripts": [ "content_scripts": [
{ {
"matches": ["*://*/*"], "matches": ["*://*/*"],
@@ -31,49 +36,16 @@
} }
], ],
"web_accessible_resources": [ "web_accessible_resources": [
{ "icons/*",
"resources": ["icons/*"], "fonts/*",
"matches": ["*://*/*"] "images/*",
}, "css/*",
{ "popup/*",
"resources": ["fonts/*"], "client.js",
"matches": ["*://*/*"] "index.css",
}, "interface/*",
{ "client/*",
"resources": ["images/*"], "resources/*",
"matches": ["*://*/*"] "backgrounds/*"
},
{
"resources": ["css/*"],
"matches": ["*://*/*"]
},
{
"resources": ["popup/*"],
"matches": ["*://*/*"]
},
{
"resources": ["client.js"],
"matches": ["*://*/*"]
},
{
"resources": ["index.css"],
"matches": ["*://*/*"]
},
{
"resources": ["interface/*"],
"matches": ["*://*/*"]
},
{
"resources": ["client/*"],
"matches": ["*://*/*"]
},
{
"resources": ["resources/*"],
"matches": ["*://*/*"]
},
{
"resources": ["backgrounds/*"],
"matches": ["*://*/*"]
}
] ]
} }