Load all in youtube playlist Bookmarklet

Load all videos in YouTube playlist when you have more than 100 videos.
By Yusaf Khaliq

Source (jsfiddle.net)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%20%7B%20console.time%28%27playlist-button-clicker%27%29%3B%20var%20i%20%3D%200%2C%20clicker%20%3D%20setInterval%28function%28%29%20%7B%20var%20button%20%3D%20document.querySelector%28%22.load-more-button%22%29%3B%20if%20%28%21button%20%26%26%20%28i%20%3D%3D%3D%200%20%7C%7C%20i%20%3E%205%29%29%20%7B%20clearInterval%28clicker%29%3B%20console.log%28%22interval%20cleared%22%29%3B%20var%20videos%20%3D%20document.querySelectorAll%28%22.pl-video%22%29%3B%20videos%5Bvideos.length%20-%201%5D.scrollIntoView%28%29%3B%20videos%20%3D%20null%3B%20console.timeEnd%28%27playlist-button-clicker%27%29%3B%20%7D%20else%20if%20%28%21button%29%20%7B%20i--%3B%20console.log%28%22button%20not%20found%22%29%3B%20%7D%20else%20%7B%20i++%3B%20button.click%28%29%3B%20console.log%28%22button%20clicked%22%29%3B%20%7D%20%7D%2C%2010%29%3B%20%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.