Upgrade to manifest V3

changes apply to SEQTA.js and Backround.js
This commit is contained in:
RandomTechChannel
2023-07-25 11:36:59 +08:00
committed by GitHub
parent 38b53e6d8c
commit dc1a84cdd8
+43 -15
View File
@@ -1,12 +1,11 @@
{ "manifest_version": 3,
"manifest_version": 2,
"name": "BestSEQTA", "name": "BestSEQTA",
"version": "3.0.2", "version": "3.0.2",
"description": "Making SEQTA Learn better.", "description": "A dark-themed Firefox/Chrome Extension that adds additional features and gives an overall better experience for SEQTA Learn.",
"icons": { "icons": {
"48": "icons/icon-48.png" "48": "icons/icon-48.png"
}, },
"browser_action": { "action": {
"browser_style": true, "browser_style": true,
"default_popup": "popup/info.html", "default_popup": "popup/info.html",
"default_icon": { "default_icon": {
@@ -17,16 +16,16 @@
"permissions": [ "permissions": [
"tabs", "tabs",
"notifications", "notifications",
"storage", "storage"
"https://newsapi.org/" ],
"host_permissions": [
"https://newsapi.org/",
"*://*/*"
], ],
"background": { "background": {
"scripts": [ "service_worker": "background.js"
"background.js"
]
}, },
"optional_permissions": [ "optional_permissions": [
"*://*/*",
"declarativeContent" "declarativeContent"
], ],
"content_scripts": [ "content_scripts": [
@@ -35,15 +34,44 @@
"https://*.edu.au/*" "https://*.edu.au/*"
], ],
"js": [ "js": [
"purify.min.js",
"SEQTA.js" "SEQTA.js"
], ],
"run_at": "document_start" "run_at": "document_start"
} }
], ],
"web_accessible_resources": [ "web_accessible_resources": [
"icons/*", {
"images/*", "resources": [
"inject/*", "icons/*"
"popup/*" ],
"matches": [
"*://*/*"
]
},
{
"resources": [
"images/*"
],
"matches": [
"*://*/*"
]
},
{
"resources": [
"inject/*"
],
"matches": [
"*://*/*"
]
},
{
"resources": [
"popup/*"
],
"matches": [
"*://*/*"
]
}
] ]
} }