r/dankmemes Jan 15 '22 Silver 65 Helpful 61 Wholesome 71 All-Seeing Upvote 1 Evil Cackle 1 Mod's Choice 1

Now touch both exposed proms with a pair of scissors it's pronounced gif

96.2k Upvotes

View all comments

Show parent comments

57

u/newtelegraphwhodis Jan 15 '22

how does this work?

152

u/cantileverboom Jan 15 '22 edited Jan 15 '22

The API to obtain the dislike count still works, so the plugin calls the API and inserts the dislike count itself.

If YouTube ever removes the API, then there won't really be a way to obtain the dislike count.

(if anyone is unfamiliar with APIs, the Wikipedia page has a decent amount of info on them)

edit: seems like the API doesn't apply for new videos, and bases it off of user data from the extension. Thanks for the info fellow redditors

4

u/newtelegraphwhodis Jan 15 '22

Ok but hear me out.

A separate database that stores like/dislike click ratio by users with the extension, then extrapolates the dislikes by total likes on youtube to get a rough estimate of dislikes.

But hopefully the API sticks around.

Edit: oh I guess this is exactly the case now. Bummer

2

u/cantileverboom Jan 15 '22

I guess so :(