mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-25 07:43:01 +01:00
3.0.0.14 release - YouTube UI fixes
This commit is contained in:
1 parent
6791543617
commit
fbf80ab174
3 files changed
+9
-9
No files matched your search
@@ -17,6 +17,7 @@ import {
|
||||
createObserver
|
||||
} from './utils';
|
||||
import { createStarRating } from "./starRating";
|
||||
import { dislikeClicked } from './events';
|
||||
|
||||
//TODO: Do not duplicate here and in ryd.background.js
|
||||
const apiUrl = "https://returnyoutubedislikeapi.com";
|
||||
@@ -122,7 +123,7 @@ function isLikesDisabled() {
|
||||
getButtons().children[0].querySelector(".button-renderer-text").innerText
|
||||
);
|
||||
}
|
||||
return /^\D*$/.test(getButtons().children[0].innerText);
|
||||
return /^\D*$/.test(getLikeTextContainer().innerText);
|
||||
}
|
||||
|
||||
function isVideoLiked() {
|
||||
@@ -162,7 +163,6 @@ function setLikes(likesCount) {
|
||||
function setDislikes(dislikesCount) {
|
||||
cLog(`SET dislikes ${dislikesCount}`)
|
||||
getDislikeTextContainer()?.removeAttribute("is-empty");
|
||||
getDislikeTextContainer()?.removeAttribute('is-empty');
|
||||
if (!isLikesDisabled()) {
|
||||
if (isMobile()) {
|
||||
getButtons().children[1].querySelector(
|
||||
|
||||
Reference in new issue
Block a user