mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 15:37:12 +03:00
Fixed permissions.
This commit is contained in:
@@ -44,12 +44,11 @@
|
|||||||
"permissions": [
|
"permissions": [
|
||||||
"storage",
|
"storage",
|
||||||
"notifications",
|
"notifications",
|
||||||
"https://sponsor.ajay.app/*",
|
"https://sponsor.ajay.app/*"
|
||||||
"https://*.invidio.us/*"
|
|
||||||
],
|
],
|
||||||
"optional_permissions": [
|
"optional_permissions": [
|
||||||
"declarativeContent",
|
"https://*/*",
|
||||||
"https://*/*"
|
"declarativeContent"
|
||||||
],
|
],
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_title": "__MSG_Name__",
|
"default_title": "__MSG_Name__",
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ async function init() {
|
|||||||
|
|
||||||
checkbox.addEventListener("click", () =>{
|
checkbox.addEventListener("click", () =>{
|
||||||
setOptionValue(option, reverse ? !checkbox.checked : checkbox.checked);
|
setOptionValue(option, reverse ? !checkbox.checked : checkbox.checked);
|
||||||
|
|
||||||
// See if anything extra must be run
|
// See if anything extra must be run
|
||||||
switch (option) {
|
switch (option) {
|
||||||
case "supportInvidious":
|
case "supportInvidious":
|
||||||
@@ -65,8 +66,8 @@ async function init() {
|
|||||||
]
|
]
|
||||||
})]
|
})]
|
||||||
};
|
};
|
||||||
|
|
||||||
chrome.declarativeContent.onPageChanged.addRules([rule], console.log);
|
chrome.declarativeContent.onPageChanged.addRules([rule]);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
setOptionValue(option, false);
|
setOptionValue(option, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user