Merge pull request #761 from hyperstown/fix-new-design-getdislikecontainer

FIX: Dislike button displaying "Dislike" text next to count
This commit is contained in:
Dmitrii Selivanov authored and GitHub committed 2022-09-21 12:47:16 +02:00
commit 03c6f3b234
1 file changed
+2 -1
+2 -1
View File
@@ -56,7 +56,8 @@ function getDislikeButton() {
function getDislikeTextContainer() {
let result =
getDislikeButton().querySelector("#text") ??
getDislikeButton().getElementsByTagName("yt-formatted-string")[0];
getDislikeButton().getElementsByTagName("yt-formatted-string")[0] ??
getDislikeButton().querySelector("span[role='text']");
if (result == null) {
let textSpan = document.createElement("span");
textSpan.id = "text";