Skip to content

Instantly share code, notes, and snippets.

@willwm
Last active July 19, 2020 04:26
Show Gist options
  • Save willwm/48ec225b079a25d4d19647b538ad7c0d to your computer and use it in GitHub Desktop.
Save willwm/48ec225b079a25d4d19647b538ad7c0d to your computer and use it in GitHub Desktop.
Bookmarklet: Clear videos from YouTube Watch Later in bulk
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);
}
})();
@willwm
Copy link
Author

willwm commented Mar 28, 2019

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