mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +01:00
New YouTube UI fix
This commit is contained in:
1 parent
c965d73abd
commit
ccbc9a71b4
1 file changed
+1
-1
@@ -55,7 +55,7 @@ function getDislikeButton() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createDislikeTextContainer() {
|
function createDislikeTextContainer() {
|
||||||
const textNodeClone = getLikeButton().querySelector("button > div[class*='cbox']").cloneNode(true);
|
const textNodeClone = (getLikeButton().querySelector("button > div[class*='cbox']") || getLikeButton().querySelector('div > span[role="text"]').parentNode).cloneNode(true);
|
||||||
const insertPreChild = getDislikeButton().querySelector("yt-touch-feedback-shape");
|
const insertPreChild = getDislikeButton().querySelector("yt-touch-feedback-shape");
|
||||||
getDislikeButton().querySelector("button").insertBefore(textNodeClone, insertPreChild);
|
getDislikeButton().querySelector("button").insertBefore(textNodeClone, insertPreChild);
|
||||||
getDislikeButton().querySelector("button").classList.remove("yt-spec-button-shape-next--icon-button");
|
getDislikeButton().querySelector("button").classList.remove("yt-spec-button-shape-next--icon-button");
|
||||||
|
|||||||
Reference in new issue
Block a user