Created
September 4, 2020 23:43
-
-
Save MichaelSDavid/1181441216fee60e6365a023f7b550f9 to your computer and use it in GitHub Desktop.
Console script to bulk remove "Watch Later" videos on YouTube (requires old layout)
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
// Old view in WL: https://www.youtube.com/playlist?list=WL&disable_polymer=true | |
var timer = window.setInterval(function() { | |
var videoDeleteButton = document.querySelector('.pl-video-edit-remove') | |
if (videoDeleteButton) { | |
videoDeleteButton.click() | |
setTimeout(function() { | |
document.querySelector('.yt-uix-load-more').click() | |
}, 5000) | |
} else { | |
window.clearInterval(timer) | |
} | |
}, 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment