Skip to content

Commit

Permalink
New YouTube UI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anarios committed Oct 12, 2023
1 parent c965d73 commit ccbc9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extensions/combined/src/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function getDislikeButton() {
}

function createDislikeTextContainer() {
const textNodeClone = getLikeButton().querySelector("button > div[class*='cbox']").cloneNode(true);
const textNodeClone = (getLikeButton().querySelector("button > div[class*='cbox']") || getLikeButton().querySelector('div > span[role="text"]').parentNode).cloneNode(true);
const insertPreChild = getDislikeButton().querySelector("yt-touch-feedback-shape");
getDislikeButton().querySelector("button").insertBefore(textNodeClone, insertPreChild);
getDislikeButton().querySelector("button").classList.remove("yt-spec-button-shape-next--icon-button");
Expand Down

1 comment on commit ccbc9a7

@aequabit
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah damn, I just fixed this myself and was about to submit it, I guess I should've checked the repo first, but at least I got some insight into the code, so maybe next time :^)

Please sign in to comment.