Skip to content

Instantly share code, notes, and snippets.

@MichaelSDavid
Created September 4, 2020 23:43
Show Gist options
  • Save MichaelSDavid/1181441216fee60e6365a023f7b550f9 to your computer and use it in GitHub Desktop.
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)
// 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