ソースを参照

Merge pull request #324 from mphelp/fix-clips

Fix Issue 180: clips
Dmitrii Selivanov 3 年 前
コミット
14145ed7b5

+ 2 - 7
Extensions/UserScript/Return Youtube Dislike.user.js

@@ -348,13 +348,8 @@ function setEventListeners(evt) {
     }
   }
 
-  if (
-    window.location.href.indexOf("watch?") >= 0 ||
-    (isMobile && evt?.indexOf("watch?") >= 0)
-  ) {
-    cLog("Setting up...");
-    jsInitChecktimer = setInterval(checkForJS_Finish, 111);
-  }
+  cLog("Setting up...");
+  jsInitChecktimer = setInterval(checkForJS_Finish, 111);
 }
 
 (function () {

+ 1 - 3
Extensions/combined/ryd.content-script.js

@@ -44,9 +44,7 @@ function setEventListeners(evt) {
     }
   }
 
-  if (window.location.href.indexOf("watch?") >= 0) {
-    jsInitChecktimer = setInterval(checkForJS_Finish, 111);
-  }
+  jsInitChecktimer = setInterval(checkForJS_Finish, 111);
 }
 
 setEventListeners();