aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/compatibility.ts
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2023-09-05 01:28:15 -0400
committerGitHub <[email protected]>2023-09-05 01:28:15 -0400
commitbc2db0cf2c13f6e8aac75227694babdf3693d45d (patch)
tree664d67988b1fe96abc67e9842dd2252aaaa3b9bc /src/utils/compatibility.ts
parentedaed61612597d55af691963fa99b74ab0813e8e (diff)
parent843ef37dcd5e5e15f5ace6d36e5c84908048f0ea (diff)
downloadSponsorBlock-bc2db0cf2c13f6e8aac75227694babdf3693d45d.tar.gz
SponsorBlock-bc2db0cf2c13f6e8aac75227694babdf3693d45d.zip
Merge branch 'master' into EthanBnntt-patch-1
Diffstat (limited to 'src/utils/compatibility.ts')
-rw-r--r--src/utils/compatibility.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/utils/compatibility.ts b/src/utils/compatibility.ts
new file mode 100644
index 00000000..b08877e6
--- /dev/null
+++ b/src/utils/compatibility.ts
@@ -0,0 +1,15 @@
+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);
+ }
+} \ No newline at end of file