Fix Clips functionality

This commit is contained in:
mphelp committed 2022-01-15 11:39:52 -06:00
1 parent e1fd470f5d
commit 728680f84b
4 files changed
+7 -17

No files matched your search

@@ -7,7 +7,8 @@
// @description Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/
// @icon https://github.com/Anarios/return-youtube-dislike/raw/main/Icons/Return%20Youtube%20Dislike%20-%20Transparent.png
// @author Anarios & JRWR
// @match *://*.youtube.com/*
// @match *://*.youtube.com/watch*
// @match *://*.youtube.com/clip*
// @exclude *://music.youtube.com/*
// @exclude *://*.music.youtube.com/*
// @compatible chrome
@@ -348,13 +349,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 -5
View File
@@ -19,11 +19,7 @@
},
"content_scripts": [
{
"matches": [
"*://youtube.com/*",
"*://www.youtube.com/*",
"*://m.youtube.com/*"
],
"matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"],
"exclude_matches": ["*://*.music.youtube.com/*"],
"js": ["ryd.content-script.js"],
"css": ["content-style.css"]
+1 -1
View File
@@ -16,7 +16,7 @@
},
"content_scripts": [
{
"matches": ["*://*.youtube.com/*"],
"matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"],
"exclude_matches": ["*://*.music.youtube.com/*"],
"run_at": "document_idle",
"css": ["content-style.css"],
+1 -3
View File
@@ -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();