Adds a download button to YouTube videos using Cobalt API for downloading videos or audio.
Има други версии на този скрипт, където кодът е обновен. Покажи всички версии.
So previously I was using my own version of Kwiat's Cobalt Instances list, with the ones he removed. But then they contacted me on their Discord, asking me to take it down, because apparently they don't want me using instances that don't give explicit "consent". Which in my opinion is stupid, if you have something publicly accessible on the internet with no security (I use V10 API now, so it's very easy to add such security), then in my opinion is open for anyone to use. That's like saying since YouTube did not say I can use their website, then I can't. But whatever, so you are likely often going to not be able to download directly, and will be redirected to cobalt.tools. Theirs not much I can do, I'm afraid if I just ignored them, that they'd block me, you can host your own instance list and change the URL to yours (you can Ctrl + Find for the comment "Change this URL to change what instance list is used."), but note I am not responsible if you use instances without consent from the owner. I have completely lost motivation to keep maintaining this because of this, so this will likely be the last update, I'm sorry, but mabye if the Cobalt devs decide to host their own free open API (Like they have been doing since the start up until V10), then mabye I'll reconsider, but until then...
Only initilize Download button on video player URLs.