Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/
< Обсуждения: Return YouTube Dislike
For whatever reason it stopped finding button with querySelector off the parent element.
Until fixed workaround is to hardcode button location in getDislikeTextContainer. Replace all content of getDislikeTextContainer function with.
let r###lt = document.querySelector("#segmented-dislike-button > ytd-toggle-button-renderer > yt-button-shape > button > #text");if (r###lt === null) {let textSpan = document.createElement("span");textSpan.id = "text";textSpan.style.marginLeft = "2px";let button = document.querySelector("#segmented-dislike-button > ytd-toggle-button-renderer > yt-button-shape > button");button.appendChild(textSpan);button.style.width = "auto";r###lt = textSpan;}return r###lt;
Войдите, чтобы ответить.
For whatever reason it stopped finding button with querySelector off the parent element.
Until fixed workaround is to hardcode button location in getDislikeTextContainer. Replace all content of getDislikeTextContainer function with.