elliotwaite / thumbnail-rating-bar-for-youtube

A Chrome and Firefox extension for YouTube that adds a rating bar (likes/dislikes ratio) to the bottom of every thumbnail.
https://chrome.google.com/webstore/detail/youtube-thumbnail-rating/cmlddjbnoehmihdmfhaacemlpgfbpoeb
MIT License
249 stars 17 forks source link

percentage count doesn't get color coded, in firefox #63

Closed HarshRaj-I closed 2 years ago

HarshRaj-I commented 2 years ago

example : https://ibb.co/0sP5WFN

please fix this i will be very thankful to you

elliotwaite commented 2 years ago

Strange, it seems to be working for me in Firefox. Can you try inspecting the text percentage element to see what the HTML looks like (right-click on the percentage text and choose "Inspect"). For me the element looks like this:

<span class="style-scope ytd-video-meta-block ytrb-percentage" style="color:rgb(33.12917594654782,216.75,0)">97.4%</span>

And the style attribute should be applying the color. Does it look similar for you?

elliotwaite commented 2 years ago

After discussing the issue with @HarshRaj-I on Discord, it looks like this issue was being caused by another extension overriding the element's color style by using the !important property, so I released an update (version 1.7.1) that fixes this issue by updating the HTML that gets injected by this extension to use the !import property as well.