Sorry, just want to confirm again. So this script does not rely on any of the end points detailed in the YouTube Data API, where they'll be removing the dislikeCount param on Dec 13?
To be clear, anyone can understand that the script works just because YouTube is giving more data than it displays. I looked at the script, and it will took about 5 minutes to fix it, so I see no reason to look that far. Just use while u can :) P.S dislikeCount param didn't used in this script
You're still relying on rating API, which will almost certainly be removed by Youtube around the same time they remove dislikes. Your idea that Youtube employees "forgot" about a public API that is probably still frequently used is just plain bullshit lol
If I'm able to find out about this API through your reddit comments in a span of 3 minutes of googling, so can anyone else who works at the company.
This is clever, but very easy for Google to fix (there is no reason that data has to be there). I was initially a bit puzzled why you didn't just directly read the "other number" but I assume the only reason it's present in my data is that I haven't gotten the rollout yet?
Also, friends don't let friends release obfuscated scripts - it only serves to make them look suspicious, and does not meaningfully hinder analysis. It took me all of 10 minutes to find out exactly how it works, and it will be even shorter for Google. I'm not pasting a deobfuscated snippet here to avoid doing their work for them.
This is really important, removing the dislike bar only made it harder to differentiate between bad tutorials and scams from actual good, informative videos
That was the point of the update. To fuel clicks to click bate to get more retention time for more ad money for youtube. They don't care if the content is wrong, scammy, or otherwise just political fuel. I remember reading a book a while ago about a dystopian future where the media controlled how people were thinking regardless if it was right or wrong. This reminds me very much of that. Too bad I can't remember the books name :(
Because they care mostly about viewer retention and they believe that they have solidified themselves so deeply into the users everyday lives that the users are now addicted like a drug and it will be too hard for them to actually just leave and not use the platform again. They believe the users will just get used to it and will get used to waisting their time on bad content in search of the actual good content.
Interesting, I took a look at the source and it seems like you're calculating dislikes from the ratio. This probably won't last forever given that youtube can just stop showing the ratio altogether (which they will if they are a-hole enough).
Still won't load. It says it can't get a secure connection to the website:
"Secure Connection FailedAn error occurred during a connection to textbin.net. SSL received a record that exceeded the maximum permissible length.Error code: SSL_ERROR_RX_RECORD_TOO_LONG The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please contact the website owners to inform them of this problem."
Thanks. I have no real knowledge about what you have done, but I copied and pasted your code (I guess it's just javascript?) in my "Enhancer for Youtube" browser extension and then hit "save", and now the dislike numbers are back for every video. Hope it continues to work.
Yeah, I definitely wouldn't use that on my main google account. I may take the time to deobfuscate and analyze it later, but I don't see how it's that much better.
The only differentiating features are the preview of the exact ratio and updated dislike count after the user interacts with it.
This is amazing, thank you very much for sharing. I had that idea myself, but I didn't think a company with such large dev teams would leave a parameter behind. You deserve a beer, my friend 🍻
It is confirmed to change. From what I know this script seems to last longer as its an estimate (a somehow really accurate one) and not using external data.
I checked deobfuscated code looks that here's really used only math without external data, it's a mystery to me how it works, but idk still paranoia due to obfuscated code
I didn't find anything suspicious in deobfuscated code, 99% that the script is clean, but I still has paranoia + the code will not be able to be modified
Can you fix the counting of votes during streams? Now there are two numbers displayed at the same time, the old one when I voted and the new one that appears when others vote.
I cleaned the code and added minor tweaks <link below> For example the percentage: (((likes / (likes + dislikes)) * 100 * 100) / 100)Lol its just ratio * 20! For me, your onclick did not work. Useful script though!
-Fixed consistent loading (with DOMNodeInserted listener) -Fixed double likes (no value insertion needed by userscript) -Fixed compact formatting (Thanks joseph261059!) -Fixed return when not in watch page
double compared with "normal" count. But why you thing this is incorrect ? This video actually has 4 millon of dislikes according to information from YouTube API. OP work looks more legit in this case
Yes, thanks. I updated the script. https://pastebin.com/Bn2D4wgT I did not understand OP's long formula and was not aware the rating is from 1 to 5 not 0 to 5
Do you have a github? It could be better there to report issues and make adjustments and pull requests.
Anyway, there's this strange bug where the number sometimes doesn't display right and if I right click on the like/dislikes counts (not the buttons), they disappear.
EDIT: I also want to add that sometimes the like counter appends the new count to the end when I like a video. So for example, a video with 12 likes becomes 1213 when I give it a like.
Not sure if it's the same for anyone else, but the actual progress bar below the like/dislike buttons is reversed. You can fix it by editing line 93 i think:
This is a great script. Thought I'd report a bug I've noticed on some videos. If you dislike a video with what appears to be under 1000 likes, then change your mind and like the video. The current number of likes doubles. As in if there are 594 likes, disliking the video then liking it will say there are 594594 likes. A minor bug but thought I'd let you know.
Well, this is weird. I went to grab a screenshot and now it's back. It was really gone for me on all videos though for at least a couple hours. It made the dislikes number show up as NaN for me, which seemed to also be the case for at least one other user here.
I've noticed that if you look at the bar/hover over right as the page is loading/refreshing you can actually see the number of dislikes and the bar shows the correct ratio. So I'm hoping we will see a potential fix soon.
So, you should be the only one to use it? If they block it then another way will be figured out to do the same thing. Thats how things evolve and advance.
After pressing the like button, it doesn't replace the old value with the new, so when I've pressed the like at 269, having the script running it displayed 269270 likes instead of 270.
Otherwise seems to be working fine, nicely done! :))
Every YouTube video has an "averageRating" score, and by using the formula (l*((5-r)/(r-1))), where "l" is the number of likes and "r" is the average rating score (you can find the average rating by going to view-source and searching for "averageRating") you can calculate the approximate number of dislikes. You could manually calculate the dislikes yourself too by just plugging in numbers into a calculator.
Yes—maybe. It just depends on whether Youtube decides to remove the average rating score. As long as that is still there, then you can calculate the number of dislikes.
Very nice script, it works flawlessy on Chromium/Chrome but fails when used with Vivaldi, a Chromium derivative. Likes/dislike count, when under a thousand, is displayed properly, but when it reaches a thousand, it only shows the first digit of the number (e.g. if it's 9,062, it displays 9).
worked great. Thanks. Just time before this becomes unusable probably, sadly. Just like when they forced their new player and their age restriction garbage
Can you make a counter that compares views to like count instead? It's better than nothing at this point. I made one but it's very crude so please just work your JS magic :)
I can see a problem with this. When most of people stop using dislike button as youtube intends , the number of dislikes will lot less than actual people who dislike the video and numbers that script shows will not reflect the actual ratio of people who disliked it to liked it. Still cool script tho
problem is not with script but the people who will not dislike the video even tho they disliked it since it is hidden,or does it use math to identify the number of dislikes if even people dont dislike it ?
Hello, SyndiateRedditPoster, you may have noticed an abundance of posts about abusive ads, bots, and spam accounts on r/YouTube lately. We're currently partaking in a protest that you can learn about here!
Hello, SyndiateRedditPoster, you may have noticed an abundance of posts about abusive ads, bots, and spam accounts on r/YouTube lately. We're currently partaking in a protest that you can learn about here!
When YouTube Dislike count API shutdown it will use data from their own server instead of calculating dislike from other data like this script does which should be far more up-to-date and accurate than whatever is stored on return youtube dislike server and will also work on new video after the API is gone.
This extension won't work once youtube removes dislikes from API - because you're not "using math", you're just taking rating (a 5-star representation of like/dislike ratio) and converting it to like/dislike count, and it will stop working once youtube removes dislikes (and ratings) from API. My extension, on the other hand, has over data of over 1.5 billion videos saved into DB already, and the number only grows.
Best of luck to you, but you need a better approach to expect for this to work after API is closed.
Over 1.5 billion? 🤔 Could you also add support for new videos after YT pulls the plug on the API?
Add in a custom Dislike count starting at 0 and log all the clicks on it by users of the extension. Then store the count the same way, however you're doing it:
After Vanced was taken down, I suddenly remembered this post.
We didn't think that YouTube would stop it, but they did anyway. Vanced was possibly C&D'd because it was becoming popular. If you kept this userscript secret and proposed it privately to the RYD devs, it might've lasted longer and improved the extension. But you shared it almost everywhere and they had to patch it. YouTube is probably reading discussions and they'll eventually find out about it.
/u/SyndiateRedditPoster can you please check https://github.com/Anarios/return-youtube-dislike/ ? I visited this repo and it looks like the userscript is working for me and i still see dislikes at this time. Perhaps you can work with them and submit a PR or help them with issues? I'm sure your skillset would be useful to them if you have the time.
On November 10th, 2021, Google announced that the YouTube dislike count would be removed. Additionally, the dislike field in the YouTube API will be removed on December 13th, 2021, removing any ability to judge the quality of content before watching.
This plugin will re-enable the visibility of the dislike count, fetching the total number of dislikes via our API, which in turn relies upon YouTube's Data API.
With the removal of dislike stats from the YouTube API, our backend will switch to using a combination of scraped dislike stats, estimates extrapolated from extension user data and estimates based on view\like ratios.
Yeah, I know. I kikd of assumed that legacy data would use the latest data internally, and if they set up access control rules or something to prevent users from accessing other people's dislikes data that would happen automatically.
I have no clue how youtube works internally and this was a super neat find, unfortunately it did not work.
12
u/[deleted] Nov 14 '21
Oh shit, you sound smart as fuck. Dope! Do you ever do commission work?
3
u/BatedWaif Nov 29 '21
Thanks a lot for this script! It works for me I just have 1 problem. My like and dislikes are switched ( only visually ). Is there any way to fix it?
https://imgur.com/a/xEb6m2n
3
u/zenzenzen322 Nov 23 '21 edited Dec 26 '21
You're still relying on rating API, which will almost certainly be removed by Youtube around the same time they remove dislikes. Your idea that Youtube employees "forgot" about a public API that is probably still frequently used is just plain bullshit lol
If I'm able to find out about this API through your reddit comments in a span of 3 minutes of googling, so can anyone else who works at the company.
6
u/mudkip908 Nov 15 '21
This is clever, but very easy for Google to fix (there is no reason that data has to be there). I was initially a bit puzzled why you didn't just directly read the "other number" but I assume the only reason it's present in my data is that I haven't gotten the rollout yet?
Also, friends don't let friends release obfuscated scripts - it only serves to make them look suspicious, and does not meaningfully hinder analysis. It took me all of 10 minutes to find out exactly how it works, and it will be even shorter for Google. I'm not pasting a deobfuscated snippet here to avoid doing their work for them.
5
u/SamaelHellfire Nov 22 '21
This is really important, removing the dislike bar only made it harder to differentiate between bad tutorials and scams from actual good, informative videos
5
u/Akira896 Dec 14 '21
And...this is now broken too. Every video now shows NAN. RIP Dislike button.
4
u/ctleans Nov 16 '21
Interesting, I took a look at the source and it seems like you're calculating dislikes from the ratio. This probably won't last forever given that youtube can just stop showing the ratio altogether (which they will if they are a-hole enough).
4
u/[deleted] Nov 23 '21
I decrease the upvote to reduce the chance the post being seen
4
u/nZephalon Dec 13 '21
This is exactly what I was looking for, works perfectly!
1
u/[deleted] Nov 25 '21
I tried to get on the site, but it was blocked due to a Trojan.
1
u/aidanwd2 Dec 01 '21 edited Dec 01 '21
Since OP's code has a few bugs, I decided to recode and fix the script.
See https://pastebin.com/VVuVRDxD
3
u/rdkmy3002 Nov 15 '21
Nice job bro, this is so perfect!
3
u/splitframe Dec 06 '21 edited Dec 06 '21
For International use:
https://textbin.net/njwu9bs8av
3
u/[deleted] Dec 13 '21 edited Aug 16 '25
rich roll jar cheerful consider wild ten toy sparkle dazzling
This post was mass deleted and anonymized with Redact
6
u/sourcegeek Nov 15 '21
Yeeeah, no.. I'm not running/sharing obfuscated code. Sorry, nice idea though.
2
u/stinkypoo6634 Nov 15 '21
works guud
2
u/pixdoet Nov 15 '21
man that obfuscated code tho, good job!
2
u/N1C3L Nov 15 '21 edited Nov 15 '21
So sad that code is obfuscated, just personally for me it scares to use this. Especially because of hidden native functions.
Also you can just use "statistics.dislikeCount" in YT API v3 from json response, today it working but it may change in the future if google wants to.
https://i.imgur.com/rSsPZaP.png
2
u/Katsono Nov 17 '21
I tried your script but on a video with 150K likes it now displays 150 likes and 4 dislikes instead of 4000.
2
u/Lussu97 Nov 22 '21 edited Nov 24 '21
I cleaned the code and added minor tweaks <link below>
For example the percentage: (((likes / (likes + dislikes)) * 100 * 100) / 100)Lol its just ratio * 20! For me, your onclick did not work. Useful script though!
2
u/rthesoccerproj2 Nov 22 '21
not all heroes wear capes. you sir are a true hero to society
2
u/Lukiyano Nov 28 '21
Hi! Thank you so much for this project!
I'm seeing the numbers but the actual dislike bar is always stuck like this for me.
Any ideas?
2
u/jericjan Nov 29 '21
Do you have a github? It could be better there to report issues and make adjustments and pull requests.
Anyway, there's this strange bug where the number sometimes doesn't display right and if I right click on the like/dislikes counts (not the buttons), they disappear.
2
u/NicollasA Nov 29 '21
Good stuff, but to me it's only showing 354 dislikes in that infamous video:
https://www.youtube.com/watch?v=kxOuG8jMIgI
Still, good stuff
2
u/tea-vs-coffee Nov 30 '21
Not sure if it's the same for anyone else, but the actual progress bar below the like/dislike buttons is reversed. You can fix it by editing line 93 i think:
2
u/BlackoutWB Nov 30 '21
This is a great script. Thought I'd report a bug I've noticed on some videos. If you dislike a video with what appears to be under 1000 likes, then change your mind and like the video. The current number of likes doubles. As in if there are 594 likes, disliking the video then liking it will say there are 594594 likes. A minor bug but thought I'd let you know.
2
u/Speed43 Dec 02 '21
Looks like they've nixed the averageRating field in the player response, so I guess this script is obsolete now.
2
u/Teflawn Dec 14 '21
I've noticed that if you look at the bar/hover over right as the page is loading/refreshing you can actually see the number of dislikes and the bar shows the correct ratio. So I'm hoping we will see a potential fix soon.
1
u/TheCoolBrat Nov 22 '21
guys if this post blows up youtube may see it and block it from working
1
u/Siren72 Nov 19 '21
Delete this before Google finds out so we can enjoy this for all eternity lol
1
u/DarkAssassinXb1 Nov 23 '21
thanks for this the other one from the website some guy made doesnt work for me
1
u/AronSomodi Nov 24 '21
After pressing the like button, it doesn't replace the old value with the new, so when I've pressed the like at 269, having the script running it displayed 269270 likes instead of 270.
Otherwise seems to be working fine, nicely done! :))
1
u/hetp111 Nov 25 '21
How does it work without the API?
1
u/ciarananything Nov 25 '21
This needs to be pinned. Thank you so much!
1
u/tux-linux Nov 28 '21
Very nice script, it works flawlessy on Chromium/Chrome but fails when used with Vivaldi, a Chromium derivative. Likes/dislike count, when under a thousand, is displayed properly, but when it reaches a thousand, it only shows the first digit of the number (e.g. if it's 9,062, it displays 9).
Do you have an idea why?
1
u/ethanicus Nov 29 '21
This seems to be working for me. They just got rid of dislikes for me so we'll see how well this holds up.
1
u/[deleted] Nov 29 '21
Works great, thanks!
1
u/Shibittl Nov 29 '21
worked great. Thanks. Just time before this becomes unusable probably, sadly. Just like when they forced their new player and their age restriction garbage
1
u/Wralth_ Dec 02 '21
Welp. It appears the party is over guys. My youtube only displays NAN in the dislikes now.
1
u/nZephalon Dec 14 '21
Can you make a counter that compares views to like count instead? It's better than nothing at this point. I made one but it's very crude so please just work your JS magic :)
1
u/AxE_09 Dec 14 '21
The extension's been fixed and it works: https://www.returnyoutubedislike.com/install
Just remove the addon/extension and reinstall!
0
u/ImmortalPhoenix27 Nov 15 '21
I can see a problem with this. When most of people stop using dislike button as youtube intends , the number of dislikes will lot less than actual people who dislike the video and numbers that script shows will not reflect the actual ratio of people who disliked it to liked it. Still cool script tho
0
u/AutoModerator Dec 14 '21
Hello, SyndiateRedditPoster, you may have noticed an abundance of posts about abusive ads, bots, and spam accounts on r/YouTube lately. We're currently partaking in a protest that you can learn about here!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
-2
u/AutoModerator Nov 14 '21
Hello, SyndiateRedditPoster, you may have noticed an abundance of posts about abusive ads, bots, and spam accounts on r/YouTube lately. We're currently partaking in a protest that you can learn about here!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
-2
u/Snoo-97804 Dec 01 '21
this plugin is better and legit: https://returnyoutubedislike.com/ = https://github.com/Anarios/return-youtube-dislike
-3
u/DoesntUnderstands Nov 19 '21
This doesn't work. For some reason you're getting the data from an attribute property of the youtube app element, but that attribute is undefined.
-3
u/Asleep_Ad4989 Nov 19 '21
This extension won't work once youtube removes dislikes from API - because you're not "using math", you're just taking rating (a 5-star representation of like/dislike ratio) and converting it to like/dislike count, and it will stop working once youtube removes dislikes (and ratings) from API.
My extension, on the other hand, has over data of over 1.5 billion videos saved into DB already, and the number only grows.
Best of luck to you, but you need a better approach to expect for this to work after API is closed.
0
u/[deleted] Dec 14 '21
[deleted] — view deleted comment
8
u/[deleted] Dec 14 '21 edited Aug 16 '25
[removed] — view removed comment
3
u/[deleted] Nov 27 '21
[removed] — view removed comment
2
u/[deleted] Dec 14 '21
[removed] — view removed comment