skip to Main Content

I have read the information in this post but it seems to be outdated because it doesn’t work for me!

I am using the Arc browser and a new feature called Boost whereby one can customize the looks of a web page using custom CSS rules.

Thus far, my custom CSS rules are as follows:

.iron-selected {
  background-color: antiquewhite !important;
}

.iron-selected > #text {
  color: #000 !important;
}

.style-scope, .yt-spec-button-shape-next--mono.yt-spec-button-shape-next--tonal {
  color: #898989 !important;
}

ytd-app, .ytd-app, div#background, div#chips-wrapper {
  background-color: #0f0f0f !important;
}

.ytd-channel-name {
  color: #444 !important;
}

The 3rd CSS rule correctly changes the color of the thumbs down (dislike) button to a light gray, but the thumbs up (like) button remains black, as can be seen in the screenshot below:

YouTube buttons below the video player

I explored the HTML code below, but I don’t understand where the like button gets its black color from or how to change it: (I’ve tried setting the color of various selectors but to no avail!)

HTML code for the like button

2

Answers


  1. Chosen as BEST ANSWER

    Got it!

    #segmented-like-button > ytd-toggle-button-renderer > yt-button-shape > button > div.yt-spec-button-shape-next__icon > yt-icon > yt-animated-icon > ytd-lottie-player > lottie-component > svg > g > g:nth-child(2) > g:nth-child(4) > path, #segmented-like-button > ytd-toggle-button-renderer > yt-button-shape > button > div.yt-spec-button-shape-next__icon > yt-icon > yt-animated-icon > ytd-lottie-player > lottie-component > svg > g > g:nth-child(2) > g:nth-child(2) > path { stroke: #898989 !important; /* Set the desired color */ }


  2. Identify the CSS selector for the YouTube Like button. You can inspect the element using your browser’s developer tools. In this case, the selector might be .like-button-renderer-like-button-unclicked.

    Create a CSS rule to target the selector and change the color. You can add this rule either inline within the HTML or in an external CSS file.

    .like-button-renderer-like-button-unclicked {
      background-color: red; /* Set the desired color */
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search