Created
July 31, 2020 23:53
-
-
Save RayBB/a2689515d2e3b143290a02178f0dff1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Go to this page: https://www.youtube.com/playlist?list=WL | |
Run the command in the console | |
Paste the output in the terminal and enjoy your downloaded videos | |
*/ | |
copy( | |
Array.from(document.querySelectorAll("#content #thumbnail")) | |
.map(a => a.href) | |
.filter(a=>a!=undefined) | |
.map(a=>"youtube-dl -f 22 '"+a.replace("list", "lost") +"'") | |
.join("\n") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment