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

Feature request - the percentage should be blue for liked videos #44

Open glibg10b opened 3 years ago

glibg10b commented 3 years ago

If I've liked a video, the percentage: next to view count should be blue so I can see that I've liked the video.

glibg10b commented 3 years ago

I also think it should be more precise (e.g. 98.2% instead of 98%), since most videos in my feed have ratios > 97%

elliotwaite commented 3 years ago

Thank you for these feature requests. I like these ideas.

I have increased the precision of the percentage text to one decimal as suggested. The only time a decimal place is not shown is when the video has a 100% rating, in which case only "100%" is shown (I thought that would look better and be shorter than "100.0%"). This update has been released in version 1.3.7.

About changing the text color to blue, since the people who were original in support of adding the percentage text wanted it to be color-coded, I want to leave that as the default, but I would be open to adding an option for the user to change the color to a constant color of blue, or also possibly grey. However, I currently do not have the extra time to implement this additional option into the settings page. But if you or anyone else wants to submit a pull request for this, I would be open to reviewing it and adding it.

Also, if you just want to hardcode the color to blue for personal use (as a simpler option), you can download this repo and overwrite the ratingToRgb function to always return a blue color: https://github.com/elliotwaite/thumbnail-rating-bar-for-youtube/blob/master/extension/content-script.js#L384

Then go to your browser's extensions page and choose to load an unpacked extension, and then choose the "extension" directory at the root of this repo. Let me know if you need any more help getting this option to work.