mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-22 14:23:01 +01:00
Fix Clips functionality
This commit is contained in:
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 () {
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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"],
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user