mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-23 23:03:01 +01:00
New YouTube UI fix
This commit is contained in:
1 parent
5c73825aad
commit
889089ad1d
1 file changed
+8
@@ -60,6 +60,14 @@ function createDislikeTextContainer() {
|
||||
getDislikeButton().querySelector("button").insertBefore(textNodeClone, insertPreChild);
|
||||
getDislikeButton().querySelector("button").classList.remove("yt-spec-button-shape-next--icon-button");
|
||||
getDislikeButton().querySelector("button").classList.add("yt-spec-button-shape-next--icon-leading");
|
||||
if(textNodeClone.querySelector("span[role='text']") === null) {
|
||||
const span = document.createElement("span");
|
||||
span.setAttribute("role", "text");
|
||||
while(textNodeClone.firstChild){
|
||||
textNodeClone.removeChild(textNodeClone.firstChild);
|
||||
}
|
||||
textNodeClone.appendChild(span);
|
||||
}
|
||||
textNodeClone.querySelector("span[role='text']").innerText = "";
|
||||
return textNodeClone.querySelector("span[role='text']");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user