diff --git a/manifest.json b/manifest.json index 175ed2e9..a24e5b76 100644 --- a/manifest.json +++ b/manifest.json @@ -44,12 +44,11 @@ "permissions": [ "storage", "notifications", - "https://sponsor.ajay.app/*", - "https://*.invidio.us/*" + "https://sponsor.ajay.app/*" ], "optional_permissions": [ - "declarativeContent", - "https://*/*" + "https://*/*", + "declarativeContent" ], "browser_action": { "default_title": "__MSG_Name__", diff --git a/options/options.js b/options/options.js index 46fa4b70..b3e34fa2 100644 --- a/options/options.js +++ b/options/options.js @@ -29,6 +29,7 @@ async function init() { checkbox.addEventListener("click", () =>{ setOptionValue(option, reverse ? !checkbox.checked : checkbox.checked); + // See if anything extra must be run switch (option) { case "supportInvidious": @@ -65,8 +66,8 @@ async function init() { ] })] }; - - chrome.declarativeContent.onPageChanged.addRules([rule], console.log); + + chrome.declarativeContent.onPageChanged.addRules([rule]); }); } else { setOptionValue(option, false);