Skip to content

Instantly share code, notes, and snippets.

@h1ddengames
Created July 10, 2022 06:49
Show Gist options
  • Save h1ddengames/a8750193b2a51c64f3a06c4b431b165c to your computer and use it in GitHub Desktop.
Save h1ddengames/a8750193b2a51c64f3a06c4b431b165c to your computer and use it in GitHub Desktop.
Youtube Playlist Extractor
document.querySelectorAll('a#video-title[href]').forEach(function(element, currentIndex, listObj) {
console.log(currentIndex + ': ' + element.innerText + ' : ' + element);
})
VM5670:2 0: Top 10 SCARY Ghost Videos To SEND YOU RUNNIN' : https://www.youtube.com/watch?v=Yc64zWKIdi0
^ Console text
^ currentIndex
^ innerText (Title)
^ (Separator)
^ element (Link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment