Created
February 8, 2014 07:21
-
-
Save phoenixg/8877926 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
// Run in firebug console | |
// Get youtube video list from URL eg. https://www.youtube.com/user/WekaMOOC/videos?shelf_id=1&view=0&sort=dd | |
// refer to: http://stackoverflow.com/questions/7474354/include-jquery-in-the-javascript-console | |
var jq = document.createElement('script'); | |
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
// result eg. https://www.youtube.com/watch?v=OcgW_Z_5Vac | |
for (var i=0; i<$('.channels-content-item').length; i++){ | |
console.log( 'https://www.youtube.com' + | |
$('.channels-content-item .yt-lockup-content a').eq(i).attr('href')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment