From 49d0891fe8e1f472f568ff9f3a35b08ae164c428 Mon Sep 17 00:00:00 2001 From: Kevin Payravi Date: Mon, 22 Jan 2024 04:15:51 -0700 Subject: [PATCH] Revert Firefox manifest to v2 Manifest v3 in Firefox requires users to enable permissions as they're needed - which is good, but it's not an intuitive and clear experience. Will re-visit once the permissions experience is more clear and/or IWB can provide a better experience itself --- manifest-firefox.json | 162 ++++++++++++++++++++---------------------- 1 file changed, 77 insertions(+), 85 deletions(-) diff --git a/manifest-firefox.json b/manifest-firefox.json index 01a96d2..b61777e 100644 --- a/manifest-firefox.json +++ b/manifest-firefox.json @@ -6,7 +6,21 @@ "storage", "webRequest", "notifications", - "scripting" + "scripting", + "https://*.fandom.com/*", + "https://*.fextralife.com/*", + "https://breezewiki.com/*", + "https://antifandom.com/*", + "https://bw.projectsegfau.lt/*", + "https://breeze.hostux.net/*", + "https://breezewiki.pussthecat.org/*", + "https://bw.vern.cc/*", + "https://breezewiki.esmailelbob.xyz/*", + "https://bw.artemislena.eu/*", + "https://bw.hamstro.dev/*", + "https://nerd.whatever.social/*", + "https://breeze.nohost.network/*", + "https://breeze.whateveritworks.org/*" ], "icons": { "16": "images/logo-16.png", @@ -15,7 +29,7 @@ "64": "images/logo-64.png", "128": "images/logo-128.png" }, - "action": { + "browser_action": { "default_popup": "pages/popup/index.html", "default_icon": { "16": "images/logo-16.png", @@ -26,34 +40,72 @@ } }, "web_accessible_resources": [ - { - "resources": [ - "favicons/*", - "data/sitesDE.json", - "data/sitesEN.json", - "data/sitesES.json", - "data/sitesFR.json", - "data/sitesIT.json", - "data/sitesKO.json", - "data/sitesPL.json", - "data/sitesPT.json", - "data/sitesRU.json", - "data/sitesTOK.json", - "data/sitesUK.json", - "data/sitesZH.json" - ], - "matches": [ - "https://*/*" - ] - } + "favicons/*", + "data/sitesDE.json", + "data/sitesEN.json", + "data/sitesES.json", + "data/sitesFR.json", + "data/sitesIT.json", + "data/sitesKO.json", + "data/sitesPL.json", + "data/sitesPT.json", + "data/sitesRU.json", + "data/sitesTOK.json", + "data/sitesUK.json", + "data/sitesZH.json" ], "background": { "scripts": [ "scripts/common-functions.js", "background.js" - ] + ], + "persistent": true }, "content_scripts": [ + { + "matches": [ + "https://*.fandom.com/*", + "https://*.fextralife.com/*", + "https://breezewiki.com/*", + "https://antifandom.com/*", + "https://bw.projectsegfau.lt/*", + "https://breeze.hostux.net/*", + "https://breezewiki.pussthecat.org/*", + "https://bw.vern.cc/*", + "https://breezewiki.esmailelbob.xyz/*", + "https://bw.artemislena.eu/*", + "https://bw.hamstro.dev/*", + "https://nerd.whatever.social/*", + "https://breeze.nohost.network/*", + "https://breeze.whateveritworks.org/*" + ], + "js": [ + "scripts/common-functions.js", + "scripts/content-banners.js" + ], + "run_at": "document_start" + }, + { + "matches": [ + "https://breezewiki.com/*", + "https://antifandom.com/*", + "https://bw.projectsegfau.lt/*", + "https://breeze.hostux.net/*", + "https://breezewiki.pussthecat.org/*", + "https://bw.vern.cc/*", + "https://breezewiki.esmailelbob.xyz/*", + "https://bw.artemislena.eu/*", + "https://bw.hamstro.dev/*", + "https://nerd.whatever.social/*", + "https://breeze.nohost.network/*", + "https://breeze.whateveritworks.org/*" + ], + "js": [ + "scripts/common-functions.js", + "scripts/content-breezewiki.js" + ], + "run_at": "document_end" + }, { "matches": [ "https://*.bing.com/search*", @@ -258,73 +310,13 @@ "scripts/content-search-filtering.js" ], "run_at": "document_start" - }, - { - "matches": [ - "https://*.fandom.com/*", - "https://*.fextralife.com/*", - "https://breezewiki.com/*", - "https://antifandom.com/*", - "https://bw.projectsegfau.lt/*", - "https://breeze.hostux.net/*", - "https://breezewiki.pussthecat.org/*", - "https://bw.vern.cc/*", - "https://breezewiki.esmailelbob.xyz/*", - "https://bw.artemislena.eu/*", - "https://bw.hamstro.dev/*", - "https://nerd.whatever.social/*", - "https://breeze.nohost.network/*", - "https://breeze.whateveritworks.org/*" - ], - "js": [ - "scripts/common-functions.js", - "scripts/content-banners.js" - ], - "run_at": "document_start" - }, - { - "matches": [ - "https://breezewiki.com/*", - "https://antifandom.com/*", - "https://bw.projectsegfau.lt/*", - "https://breeze.hostux.net/*", - "https://breezewiki.pussthecat.org/*", - "https://bw.vern.cc/*", - "https://breezewiki.esmailelbob.xyz/*", - "https://bw.artemislena.eu/*", - "https://bw.hamstro.dev/*", - "https://nerd.whatever.social/*", - "https://breeze.nohost.network/*", - "https://breeze.whateveritworks.org/*" - ], - "js": [ - "scripts/common-functions.js", - "scripts/content-breezewiki.js" - ], - "run_at": "document_end" } ], - "host_permissions": [ - "https://*.fandom.com/*", - "https://*.fextralife.com/*", - "https://breezewiki.com/*", - "https://antifandom.com/*", - "https://bw.projectsegfau.lt/*", - "https://breeze.hostux.net/*", - "https://breezewiki.pussthecat.org/*", - "https://bw.vern.cc/*", - "https://breezewiki.esmailelbob.xyz/*", - "https://bw.artemislena.eu/*", - "https://bw.hamstro.dev/*", - "https://nerd.whatever.social/*", - "https://breeze.nohost.network/*", - "https://breeze.whateveritworks.org/*" - ], "optional_permissions": ["https://*/*"], - "browser_specific_settings": { + "applications": { "gecko": { "id": "{cb31ec5d-c49a-4e5a-b240-16c767444f62}" } }, - "manifest_version": 3 + "manifest_version": 2 }