Last active
July 19, 2020 04:26
-
-
Save willwm/48ec225b079a25d4d19647b538ad7c0d to your computer and use it in GitHub Desktop.
Bookmarklet: Clear videos from YouTube Watch Later in bulk
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
javascript:(() => { | |
const timeout = 500; | |
let clickTimeout = timeout; | |
const buttons = document.querySelectorAll('.pl-video-edit-remove'); | |
for (let button of buttons) { | |
setTimeout(() => { | |
console.group(button); | |
setTimeout(() => { button.click(); }, timeout); | |
console.groupEnd(); | |
}, clickTimeout += timeout); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use on: https://www.youtube.com/playlist?list=WL&disable_polymer=true