Skip to content

Instantly share code, notes, and snippets.

@RayBB
Created July 31, 2020 23:53
Show Gist options
  • Save RayBB/a2689515d2e3b143290a02178f0dff1e to your computer and use it in GitHub Desktop.
Save RayBB/a2689515d2e3b143290a02178f0dff1e to your computer and use it in GitHub Desktop.
/*
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