mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +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/
|
// @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
|
// @icon https://github.com/Anarios/return-youtube-dislike/raw/main/Icons/Return%20Youtube%20Dislike%20-%20Transparent.png
|
||||||
// @author Anarios & JRWR
|
// @author Anarios & JRWR
|
||||||
// @match *://*.youtube.com/*
|
// @match *://*.youtube.com/watch*
|
||||||
|
// @match *://*.youtube.com/clip*
|
||||||
// @exclude *://music.youtube.com/*
|
// @exclude *://music.youtube.com/*
|
||||||
// @exclude *://*.music.youtube.com/*
|
// @exclude *://*.music.youtube.com/*
|
||||||
// @compatible chrome
|
// @compatible chrome
|
||||||
@@ -348,13 +349,8 @@ function setEventListeners(evt) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
cLog("Setting up...");
|
||||||
window.location.href.indexOf("watch?") >= 0 ||
|
jsInitChecktimer = setInterval(checkForJS_Finish, 111);
|
||||||
(isMobile && evt?.indexOf("watch?") >= 0)
|
|
||||||
) {
|
|
||||||
cLog("Setting up...");
|
|
||||||
jsInitChecktimer = setInterval(checkForJS_Finish, 111);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
|
|||||||
@@ -19,11 +19,7 @@
|
|||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"],
|
||||||
"*://youtube.com/*",
|
|
||||||
"*://www.youtube.com/*",
|
|
||||||
"*://m.youtube.com/*"
|
|
||||||
],
|
|
||||||
"exclude_matches": ["*://*.music.youtube.com/*"],
|
"exclude_matches": ["*://*.music.youtube.com/*"],
|
||||||
"js": ["ryd.content-script.js"],
|
"js": ["ryd.content-script.js"],
|
||||||
"css": ["content-style.css"]
|
"css": ["content-style.css"]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
},
|
},
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": ["*://*.youtube.com/*"],
|
"matches": ["*://*.youtube.com/watch*", "*://*.youtube.com/clip*"],
|
||||||
"exclude_matches": ["*://*.music.youtube.com/*"],
|
"exclude_matches": ["*://*.music.youtube.com/*"],
|
||||||
"run_at": "document_idle",
|
"run_at": "document_idle",
|
||||||
"css": ["content-style.css"],
|
"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();
|
setEventListeners();
|
||||||
|
|||||||
Reference in new issue
Block a user