r/programming • u/Asleep_Ad4989 • Nov 14 '21
I've created a chrome extension and an API for youtube dislike stats
https://www.returnyoutubedislike.com/
4.5k
Upvotes
r/programming • u/Asleep_Ad4989 • Nov 14 '21
17
u/Asleep_Ad4989 Nov 15 '21 edited Nov 15 '21
UPDATE: Firefox verion released, v0.0.0.2 version released for chrome
930
u/kunjava Nov 15 '21
I am a developer who uses YouTube apis and on the day they announced removal of dislikes, I received a mail saying that their api will remove 'dislikes' property for all videos in the future, asking developers to accommodate the change before going live.
376
u/Tuquar Nov 14 '21
If you don't have chrome store approval then it should at least be open source, which I don't see any links to. Comes across as shady to me
53
u/[deleted] Nov 15 '21
Doesn't work. The extension calls to return-youtube-dislike-api.azurewebsites.net with the video ID of the youtube video you are watching which has some black box caching going on but it can't pull dislikes from a video that never had those statistics public. Additionally the api also doesn't update the ticket once the video tranitions from public to private stats.
You can see here what happens when this is done on a video with millions of views( so it should have a non-zero dislike ratio ) and with likes/dislikes disabled on upload.
$curl https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=zTTtd6bnhFs
{"dislikes":0}
15
u/jangxx Nov 15 '21
Have you thought of adding a service component, where users can sign their channel up for dislike scraping, essentially voluntarily publishing their dislike counts? This could also have the effect where videos of creators that do decide to publish their dislikes look more trustworthy than those with a hidden count, kind of how it is already.
I actually thought of building this service and the accompanying extension myself, but that would only fragment the community so it'd be nice to have all YT dislike related stuff in a single extension.
4
u/Asleep_Ad4989 Nov 16 '21
Mozilla accepted the extension to the store:
https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/
5
u/csharp-sucks Nov 15 '21
Stop doing chrome extensions people... We don't need Chrome monopoly on the web.
Make a Firefox extension or something.
4
u/[deleted] Nov 16 '21 edited Aug 16 '25
wakeful memorize rustic theory skirt label wild innocent mighty reach
This post was mass deleted and anonymized with Redact
3
u/guareber Nov 15 '21
You should start writing your application to keep the dislike data in your API feed, as mentioned in their blogpost.
They'll reject it, but you should go for it and then update the community. The bigger deal we make about this the mroe likely G are to revert it in some capacity.
3
u/quad64bit Nov 15 '21
I wonder if someone could make an external dislike count service and add an extension to add the button in and retrieve the dislike count. Big problem I see is the cost of keeping a service running that has to aggregate that many account + video counts, because you can’t allow people to dislike one vid more than once (per account)…
2
u/Asleep_Ad4989 Nov 15 '21
UPDATE: UserScript released, site updated with link to UserScript.
Firefox extension released as well.
2
u/Nolzi Nov 15 '21
When will you upload the firefox version to AMO?
2
u/DallasBelt Nov 15 '21
It works well on Firefox. Thanks!
2
u/Sumrised Jul 22 '24
This is how it all started...
117
u/libertarianets Nov 15 '21
honestly I was thinking of creating something like this at some point, like adding comments to videos where comments are disabled
64
u/bdbsje Nov 15 '21
It seems like an alternative is leaving a YouTube comment “Dislike” and then people upvote that comment. I wonder if you could leverage that strategy in addition? Instead of just storing the dislikes in an API that requires an extension.
Like perhaps you could track the dislikes in a comment that any YouTube user can see and perhaps mark the comment with some sort of signature so others could find your tool. Your app could then just track the comment and the likes. This enables all YouTube users to see it and engage with it.
I think the issue is that YT uses an algorithm to determine which comments get shown top(based off timing/engagement). This is where your app would be beneficial in tracking each videos “dislike” comment, and hopefully aggregating that in one spot. That way if I visit a video years later and I dislike it using the extension, it’ll add a like to the “dislike comment” that was created when the video first got downvoted.
13
u/Terrain2 Nov 15 '21
I wonder if this could get merged into SponsorBlock. Just a single database of extra crowdsourced metadata about videos, including dislikes, and not just unwanted video segments. It'd probably be the quickest way to get this on iOS since iSponsorBlock would add it.
12
u/teokun123 Nov 15 '21
I'm still seeing the dislikes in my country. Region specific?
5
u/Test_NPC Nov 15 '21
Here's an idea, we make a chrome extension to generically 'dislike' any webpage.
Then we use that instead of Youtube lol.
1
u/mahmozilla Nov 15 '21
Wouldn't the surge of api requests on azure be too expensive for you?
1
u/PirateProphet_ Nov 17 '21
Will it be possible to take Youtube's Like/Dislike data from their API and store that data in your extension?
1
u/Playful-Band-7768 Nov 20 '21
Does not work. Just writes 0 dislikes
1
u/SignificantGiraffe5 Nov 20 '21
Can work on Android?
1
u/iammr_lunatic Nov 23 '21
youtube is removing its dislike API from 13 December.. so is this going to stop working since then?
3
u/PlausibleBloater Nov 15 '21
Verrrrrrrrrrrrry nice mister.
3
u/juharris Nov 15 '21
Neat! You can also use Emojit to share your dislike (or like) of webpages so it would work on YouTube videos too https://chrome.google.com/webstore/detail/emojit/fdaopifdchifnfaiammaknlaniecbdmo
3
u/[deleted] Nov 15 '21
Will this be a time for a new competitive platform to arise? Removing dislike button is a travesty against the free speech.
3
u/icelandic_drunkard Nov 15 '21
I was 3 seconds away from asking if this was possible. Posted a question on r/youtube asking if this was possible and stumble upon it here. Thank you so much.
3
u/43tj34 Nov 16 '21 edited Nov 16 '21
Can you explain this point in the email Google sent? Does this mean you can apply and still potentially have access to all dislikes after December?
Sorry I'm not a dev, it just sounds like you can still have access after.
3
u/BorisSiberia Nov 17 '21
also work in yandex browser. thanks man
3
u/[deleted] Nov 19 '21
We shouldn’t need that, that’s like how Chinese need to use VPN for internet
2
u/deadbeef1a4 Nov 15 '21
well that was fast!
2
u/TheIntrepidus Nov 18 '21
G'bless you sir!
2
u/DavidLorenz Nov 19 '21
Thank a lot for that! My dislike are still showing but this will be good to have :)
I recommend having this extension save all the dislikes from videos that have been accessed by users with your extension enabled, that way the dislikes of more popular videos can at least be somewhat preserved.
2
u/SaltyBearPaw Nov 21 '21
is there one for Opera GX?
the browser can handle Google Chrome extensions, but whichever extension I used for Youtube dislike, it won't work like it didn't change anything, I even tried closing and opening the browser
2
u/ashkithara Nov 23 '21
thank you for doing this 0.0.7 works perfectly
2
u/dobermensch Nov 25 '21
Youve done a Gods work. Cheers.
2
u/Salty-Equivalent8672 Dec 04 '21
I hate that YouTube removed dislike counters. As a content creator, the way I see if people do not like what I made on a video is the dislikes. Now I have to look on YouTube studio for information on the dislikes. YouTube needs to realize this update was terrible, and only the bad YouTubers are liking it, because they can post and ignore the dislikes.
2
u/bashaZP Nov 15 '21
Had the same idea, but having up-to-date metrics is pretty difficult to achieve as you can't rely on YT API anymore.
2
u/ChosenMate Nov 15 '21
Is it limited to USA? Im EU and on all devices and accounts dislikes exist
1
u/ClockSpiral Nov 16 '21
Thank God for people like you.
Truly, thank you for all you do. This will actually save lives.
1
u/embrex104 Nov 15 '21
You know what would be really cool? A 5 star system on a YouTube video...
1
u/inventord Nov 15 '21
Glad someone made this!
1
u/iammr_lunatic Nov 23 '21
Plz make this for Microsoft edge too. Please
1
u/uteh5 Nov 23 '21
This is a great idea, i downloaded this and shared it to all my mates, i find the idea of seeing dislikes on basis of the extention when the possibility to get it from youtubes code a very good idea aswell.
1
u/Spiritual_Moose_8798 Nov 24 '21
Freedom 1 / Youtube Tyranny 0
1
u/liiaohaier Nov 25 '21
Man, you are doing important work there. I have installed the extension to support.
1
u/TuxedoDogs9 Nov 28 '21
supports Opera GX when
1
u/AdApprehensive257 Nov 29 '21
I appreciate this extension dev good work!
1
u/That_Goal1212 Nov 30 '21
Thank you!!
1
u/FireTyme Nov 30 '21
will this come as an opera add-on soon?
1
u/dogtron64 Dec 01 '21
Good! We need to spread a message to actual problematic Youtube channels! Stuff like fake animal rescue videos, family vlogging like LaBrant family who only had kids just to exploit them, creepy Gacha life and all the other assholes who gain so much and the actual creative people get nothing. Abuse should not be monetized
1
u/Peyote_Fox Dec 02 '21
how to do it on opera gx?
1
u/ExcellentEconomics69 Dec 03 '21
Awesome work. just installed it under opera! Works instantly. Much love!
1
u/Apprehensive-Ad5569 Dec 09 '21
Thank you very much!
1
u/BeautifulGenius10 Dec 10 '21
Thank you!!
1
u/[deleted] Sep 19 '22
You are a fucking genius.
1
u/tonyhyeok Nov 03 '22
nice i have something like this on safari. youtube needs a competitor badly otherwise we the people will lose slowly but surely
1
u/blak2590 Nov 15 '21
Hope that an Opera GX version comes out soon ^w^
1
u/ApparentlyImLost Nov 15 '21
How many dislikes for Brandon?
0
u/BlackHooch Nov 15 '21
You will get sued
0
u/heyyyinternet Nov 15 '21
I have never used the "dislike" stat for anything and I have never heard it even discussed as a serious metric before the proposed removal.