Skip to content

Commit

Permalink
added margin for the dislike text (Anarios#808)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitrii Selivanov <[email protected]>
  • Loading branch information
baraaelhalabi and Anarios authored Feb 18, 2023
1 parent a2490de commit 8802b9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Extensions/combined/src/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function getDislikeButton() {

function createDislikeTextContainer() {
const textNodeClone = getLikeButton().querySelector("button > div[class*='cbox']").cloneNode(true);
textNodeClone.setAttribute("style", "margin-left: 1rem;");
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

0 comments on commit 8802b9c

Please sign in to comment.