mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-23 23:03:01 +01:00
fix getDislikeTextContainer for new design
This commit is contained in:
1 parent
9a7554ba3c
commit
805f693be3
1 file changed
+2
-1
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user