Skip to content

Instantly share code, notes, and snippets.

@timothyarmstrong
Created April 11, 2014 21:08
Show Gist options
  • Save timothyarmstrong/10501804 to your computer and use it in GitHub Desktop.
Save timothyarmstrong/10501804 to your computer and use it in GitHub Desktop.
Delete all videos in YouTube Playlist
(function() {
var i = window.setInterval(function() {
var closeButton = document.querySelector('.pl-video-edit-remove');
if (closeButton) {
closeButton.click();
} else {
window.clearInterval(i);
}
}, 500);
})();
@samthecodingman
Copy link

This still works if you add &disable_polymer=true to the end of the playlist's url. e.g. For the watch later playlist, use: https://www.youtube.com/playlist?list=WL&disable_polymer=true

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