mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 12:07:11 +03:00
19 lines
547 B
TypeScript
19 lines
547 B
TypeScript
import Config from "../config";
|
|
|
|
export function runCompatibilityChecks() {
|
|
if (Config.config.showZoomToFillError2 && document.URL.includes("watch?v=")) {
|
|
setTimeout(() => {
|
|
const zoomToFill = document.querySelector(".zoomtofillBtn");
|
|
|
|
if (zoomToFill) {
|
|
alert(chrome.i18n.getMessage("zoomToFillUnsupported"));
|
|
}
|
|
|
|
Config.config.showZoomToFillError2 = false;
|
|
}, 10000);
|
|
}
|
|
}
|
|
|
|
export function isVorapisInstalled() {
|
|
return document.querySelector(`.v3`);
|
|
} |