mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-10-28 07:40:27 +01:00
Revert "Show dislikes again on new YT UI (01) & fix workflow faliure"
This commit is contained in:
committed by
GitHub
parent
4a7615cb20
commit
a4c763d586
@@ -151,17 +151,6 @@ function setDislikes(dislikesCount) {
|
||||
return;
|
||||
}
|
||||
getDislikeTextContainer().innerText = dislikesCount;
|
||||
|
||||
try {
|
||||
likeButton = document.querySelector("#segmented-like-button > ytd-toggle-button-renderer > yt-button-shape > button > div.cbox.yt-spec-button-shape-next--button-text-content > span")
|
||||
dislikeButton = document.querySelector("#segmented-dislike-button > ytd-toggle-button-renderer > yt-button-shape > button")
|
||||
}
|
||||
finally {
|
||||
dislikeButton.appendChild(likeButton.cloneNode(true))
|
||||
document.querySelector('#segmented-dislike-button > ytd-toggle-button-renderer > yt-button-shape > button').classList.remove('yt-spec-button-shape-next--icon-button')
|
||||
dislikeButton.lastChild.textContent = dislikesCount
|
||||
}
|
||||
|
||||
} else {
|
||||
cLog("likes count disabled by creator");
|
||||
if (isMobile()) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import ru from "./_locales/ru";
|
||||
import cs from "./_locales/cs";
|
||||
import ja from "./_locales/ja";
|
||||
import fr from "./_locales/fr";
|
||||
import uk from "./_locales/uk";
|
||||
import de from "./_locales/uk";
|
||||
// import de from "./_locales/de";
|
||||
// ...
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user