mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 10:52:20 +01:00
added margin for the dislike text (#808)
Co-authored-by: Dmitrii Selivanov <selivano.d@gmail.com>
This commit is contained in:
1 parent
a2490de5fe
commit
8802b9c76f
1 file changed
+1
@@ -56,6 +56,7 @@ function getDislikeButton() {
|
|||||||
|
|
||||||
function createDislikeTextContainer() {
|
function createDislikeTextContainer() {
|
||||||
const textNodeClone = getLikeButton().querySelector("button > div[class*='cbox']").cloneNode(true);
|
const textNodeClone = getLikeButton().querySelector("button > div[class*='cbox']").cloneNode(true);
|
||||||
|
textNodeClone.setAttribute("style", "margin-left: 1rem;");
|
||||||
const insertPreChild = getDislikeButton().querySelector("yt-touch-feedback-shape");
|
const insertPreChild = getDislikeButton().querySelector("yt-touch-feedback-shape");
|
||||||
getDislikeButton().querySelector("button").insertBefore(textNodeClone, insertPreChild);
|
getDislikeButton().querySelector("button").insertBefore(textNodeClone, insertPreChild);
|
||||||
getDislikeButton().querySelector("button").classList.remove("yt-spec-button-shape-next--icon-button");
|
getDislikeButton().querySelector("button").classList.remove("yt-spec-button-shape-next--icon-button");
|
||||||
|
|||||||
Reference in new issue
Block a user