diff --git a/package-lock.json b/package-lock.json index 421f973..7d110ad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "optmeowt", - "version": "4.3.1", + "version": "5.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "optmeowt", - "version": "4.3.1", + "version": "5.0.0", "license": "ISC", "dependencies": { "animate.css": "^4.1.1", diff --git a/src/manifests/firefox/manifest-dist.json b/src/manifests/firefox/manifest-dist.json index 7e41f8d..cc55a19 100644 --- a/src/manifests/firefox/manifest-dist.json +++ b/src/manifests/firefox/manifest-dist.json @@ -4,19 +4,37 @@ "version": "5.0.0", "description": "OptMeowt allows Web users to make use of their rights to opt out from the sale and sharing of personal data", "permissions": [ - "webRequest", "webRequestBlocking", - "", + "declarativeNetRequest", + "webRequest", "webNavigation", "storage", "activeTab", "cookies", - "tabs" + "tabs", + "scripting" + ], + "declarative_net_request": { + "rule_resources": [ + { + "id": "universal_GPC", + "enabled": true, + "path": "rules/universal_gpc_rules.json" + }, + { + "id": "GPC_exceptions", + "enabled": true, + "path": "rules/gpc_exceptions_rules.json" + } + ] + }, + "host_permissions": [ + "" ], "icons": { "128": "assets/face-icons/icon128-face-circle.png" }, - "browser_action": { + "action": { "default_title": "OptMeowt", "default_popup": "popup.html" }, @@ -34,9 +52,18 @@ "background": { "scripts": ["background.bundle.js"] }, - "web_accessible_resources": [ - "json/*.json" - ], - "manifest_version": 2, - "incognito": "spanning" + "web_accessible_resources": [{ + "resources": ["content-scripts/injection/gpc-dom.js"], + "matches": [""] + }], + "manifest_version": 3, + "incognito": "spanning", + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'" + }, + "browser_specific_settings": { + "gecko": { + "id": "{7f22397f-fb61-47e2-9e4b-4ddd98faa275}" + } + } }