mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-19 22:18:40 +03:00
Disable Invidious support in safari due to permission bug
Will be re-enabled later #2227
This commit is contained in:
@@ -114,8 +114,25 @@ async function init() {
|
||||
|
||||
if (await shouldHideOption(optionsElements[i]) || (dependentOn && (isDependentOnReversed ? Config.config[dependentOnName] : !Config.config[dependentOnName]))) {
|
||||
optionsElements[i].classList.add("hidden", "hiding");
|
||||
if (!dependentOn)
|
||||
if (!dependentOn) {
|
||||
if (optionsElements[i].getAttribute("data-no-safari") === "true" && optionsElements[i].id === "support-invidious") {
|
||||
// Put message about being disabled on safari
|
||||
const infoBox = document.createElement("div");
|
||||
infoBox.innerText = chrome.i18n.getMessage("invidiousDisabledSafari");
|
||||
|
||||
const link = document.createElement("a");
|
||||
link.style.display = "block";
|
||||
const url = "https://bugs.webkit.org/show_bug.cgi?id=290508";
|
||||
link.href = url;
|
||||
link.innerText = url;
|
||||
|
||||
infoBox.appendChild(link);
|
||||
|
||||
optionsElements[i].parentElement.insertBefore(infoBox, optionsElements[i].nextSibling);
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
const option = optionsElements[i].getAttribute("data-sync");
|
||||
|
||||
Reference in New Issue
Block a user