mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 02:41:22 +01:00
fix dislike text box not being found for some users
This commit is contained in:
1 parent
dfa541ad1c
commit
596c0d730c
3 files changed
+37
-8
No files matched your search
@@ -36,10 +36,25 @@ function getLikeButton() {
|
||||
return getButtons().children[0];
|
||||
}
|
||||
|
||||
function getLikeTextContainer() {
|
||||
return (
|
||||
getLikeButton().querySelector("#text") ??
|
||||
getLikeButton().getElementsByTagName("yt-formatted-string")[0]
|
||||
);
|
||||
}
|
||||
|
||||
function getDislikeButton() {
|
||||
return getButtons().children[1];
|
||||
}
|
||||
|
||||
function getDislikeTextContainer() {
|
||||
return (
|
||||
getDislikeButton().querySelector("#text") ??
|
||||
getDislikeButton().getElementsByTagName("yt-formatted-string")[0]
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
function checkForSignInButton() {
|
||||
if (
|
||||
document.querySelector(
|
||||
@@ -52,4 +67,4 @@ function checkForSignInButton() {
|
||||
}
|
||||
}
|
||||
|
||||
export { getButtons, getLikeButton, getDislikeButton, checkForSignInButton };
|
||||
export { getButtons, getLikeButton, getDislikeButton, getLikeTextContainer, getDislikeTextContainer, checkForSignInButton };
|
||||
Reference in new issue
Block a user