mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 12:37:05 +03:00
Moved registration removal to a util function.
This commit is contained in:
@@ -192,18 +192,7 @@ function invidiousOnClick(checkbox, option) {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (isFirefox()) {
|
||||
chrome.runtime.sendMessage({
|
||||
message: "unregisterContentScript",
|
||||
id: "invidious"
|
||||
});
|
||||
} else {
|
||||
chrome.declarativeContent.onPageChanged.removeRules(["invidious"]);
|
||||
}
|
||||
|
||||
chrome.permissions.remove({
|
||||
origins: getInvidiousInstancesRegex()
|
||||
});
|
||||
removeExtraSiteRegistration();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user