Created
June 11, 2015 18:31
-
-
Save Axfan/f861328e6050daadc757 to your computer and use it in GitHub Desktop.
Get a youtube playlist in comma delimetered format
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
var videos = document.getElementsByClassName("pl-video"); | |
var videoIDs = []; | |
for ( v = 0; v < videos.length; v++ ) { | |
videoIDs.push( videos[v].getAttribute("data-video-id") ); | |
} | |
window.alert(videoIDs.toString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment