From 768e12d0ac1260b440567e520b13c2c191e891a9 Mon Sep 17 00:00:00 2001 From: Crazypersonalph <93847055+Crazypersonalph@users.noreply.github.com> Date: Tue, 5 Dec 2023 12:53:10 +0800 Subject: [PATCH] change manifest --- public/manifest.json | 76 ++++++++++++++++++++++++++++++-------------- 1 file changed, 53 insertions(+), 23 deletions(-) diff --git a/public/manifest.json b/public/manifest.json index 91c161e0..3b33a730 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,12 +1,14 @@ { - "manifest_version": 2, + "manifest_version": 3, "name": "BetterSEQTA+", "version": "3.2.2", "description": "Make SEQTA usable and beautiful! A fork of BetterSEQTA to continue development and add WAY more features!!!", "icons": { - "48": "icons/icon-48.png" + "32": "icons/icon-32.png", + "48": "icons/icon-48.png", + "64": "icons/icon-64.png" }, - "browser_action": { + "action": { "browser_style": true, "default_popup": "interface/index.html#settings", "default_icon": { @@ -15,16 +17,11 @@ "64": "icons/icon-64.png" } }, - "permissions": ["tabs", "notifications", "storage", "https://newsapi.org/"], + "permissions": ["tabs", "notifications", "storage"], + "host_permissions": ["https://newsapi.org/", "*://*/*"], "background": { - "scripts": [ - "browser-polyfill.js", - "background.js" - ] -}, - "optional_permissions": [ - "*://*/*" - ], + "service_worker": "background.js" + }, "content_scripts": [ { "matches": ["*://*/*"], @@ -33,16 +30,49 @@ } ], "web_accessible_resources": [ - "icons/*", - "fonts/*", - "images/*", - "css/*", - "popup/*", - "client.js", - "index.css", - "interface/*", - "client/*", - "resources/*", - "backgrounds/*" + { + "resources": ["icons/*"], + "matches": ["*://*/*"] + }, + { + "resources": ["fonts/*"], + "matches": ["*://*/*"] + }, + { + "resources": ["images/*"], + "matches": ["*://*/*"] + }, + { + "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": ["*://*/*"] + } ] } \ No newline at end of file