Skip to content

Instantly share code, notes, and snippets.

@ktaragorn
Last active August 30, 2017 03:19
Show Gist options
  • Save ktaragorn/a0ff7153a8eab6521fa49ac8276c9083 to your computer and use it in GitHub Desktop.
Save ktaragorn/a0ff7153a8eab6521fa49ac8276c9083 to your computer and use it in GitHub Desktop.
Get all video urls in your youtube playlist (watch later list in this case). Run this in browser inspect on that page.
JSON.stringify(Array.prototype.slice.call(document.querySelectorAll(".pl-video-title-link")).map(function(a){return a.href.replace(/&list=.*/g,'').replace(/&index=.*/g,'')}))
@ktaragorn
Copy link
Author

This step is redundant, it is easier to download the public playlist created to clear WL itself since youtube-dl can handle playlists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment