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
250 stars 15 forks source link

Local etension #70

Open shhivaam opened 2 years ago

shhivaam commented 2 years ago

Sir you already given me local extension by changing: function getRatingPercentageHtml(videoData) { let r = (1 - videoData.rating) 1275 let g = videoData.rating 637.5 - 255 if (!isDarkTheme) { g = Math.min(g, 255) * 0.85 } let rgb = 'rgb(' + r + ',' + g + ',0)'

return '' + ratingToPercentage(videoData.rating) + '' }

to

function getRatingPercentageHtml(videoData) { let r = (1 - videoData.rating) 1275 let g = videoData.rating 637.5 - 255 if (!isDarkTheme) { g = Math.min(g, 255) * 0.85 } let rgb = 'rgb(' + r + ',' + g + ',0)' let text = videoData.likes.toLocaleString() + ' likes, ' + videoData.dislikes.toLocaleString() + ' dislikes'

return '' + text + '' }

to get number of likes and dislike below the title of the video,can you write a new code to get same because it doesnt load like and dislike data for most videos in video page of youtube channel and when we search anything in youtube under people also watched,top news and for you section,it doesnt load like dislike data and for last video in each category it loads but its wrong count showing and also for youtube shorts video it doesnt load

elliotwaite commented 2 years ago

Thank's for reporting this. I currently don't have time to work on this, but I have added this to my future TODO list to get to eventually.

shhivaam commented 2 years ago

Ok, make new changes when you get the time.

On Tue, Mar 29, 2022 at 8:13 AM Elliot Waite @.***> wrote:

Thank's for reporting this. I currently don't have time to work on this, but I have added this to my future TODO list to get to eventually.

— Reply to this email directly, view it on GitHub https://github.com/elliotwaite/thumbnail-rating-bar-for-youtube/issues/70#issuecomment-1081341694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXDKUGANGEIMK3VDLMOZAM3VCJU5RANCNFSM5R32TXEA . You are receiving this because you authored the thread.Message ID: @.*** com>

shhivaam commented 2 years ago

Please consider making new changes if you get time

On Tue, Mar 29, 2022 at 12:06 PM Shivam Kumar Choudhary < @.***> wrote:

Ok, make new changes when you get the time.

On Tue, Mar 29, 2022 at 8:13 AM Elliot Waite @.***> wrote:

Thank's for reporting this. I currently don't have time to work on this, but I have added this to my future TODO list to get to eventually.

— Reply to this email directly, view it on GitHub https://github.com/elliotwaite/thumbnail-rating-bar-for-youtube/issues/70#issuecomment-1081341694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXDKUGANGEIMK3VDLMOZAM3VCJU5RANCNFSM5R32TXEA . You are receiving this because you authored the thread.Message ID: @.*** .com>