by yoavm · 5y ago · 0 comments
// ==UserScript==
// @name youtube-redirect
// @match https://www.youtube.com/watch*
// @run-at document-start
// @version 1.0
// ==/UserScript==
window.stop();
GM.fetch("https://alltubedownload.net/json?url="+document.location).then(x=> window.location=JSON.parse(x).url); youtube-dl -F apeZO6C0ZeA
and if you ignore the entries that are video or audio only, there's only a 640x360 stream and a 1280x720 stream. This video is actually available in 2160p, so you definitely are getting a lesser quality experience if you just redirect to the MP4.The reason for this is that Youtube uses DASH[1] to switch to the best usable audio and video automatically. In this case the top video bitrate is about 18 Mbps!
Incidentally, Youtube has really gone into the sewer. I spent about 5 minutes scrolling down the page to find a video I wasn't too embarrassed to use as an example for this comment.
[1] https://en.wikipedia.org/wiki/Dynamic_Adaptive_Streaming_ove...
To get good content, rather than popular, you have to search for it. Or have a history of watching good content, so the system can recommend more.
Even so, I still ignore the vast majority of Youtube's suggestions.
But again, there's also plenty of good content.
I do agree that there's good content on YouTube, but if I watch any garbage at all, the recommendation engine will only recommend that. I wonder if someone has a script that will reset my YouTube history every day. Might be interesting for the algorithm to have a fresh take on me every day to show me what I'm into that day.
Disclaimer: I am the author of the script