Skip to content

Instantly share code, notes, and snippets.

@krmax44
Created September 12, 2019 19:03
Show Gist options
  • Save krmax44/a0d8eeb3ee4358dd2f7d956ef92e8358 to your computer and use it in GitHub Desktop.
Save krmax44/a0d8eeb3ee4358dd2f7d956ef92e8358 to your computer and use it in GitHub Desktop.
Remove all videos from YouTube Watch Later playlist
/*
go to https://www.youtube.com/playlist?list=WL&disable_polymer=true
or any other YouTube playlist - but make sure to be on the old interface
scroll all the way to the bottom and load in all playlist items
then open up the developer console (Ctrl + Shift + I)
and paste the following snippet
*/
(async () => {
for (const e of $$('.pl-video-edit-remove')) {
e.click();
await new Promise(res => setTimeout(res, 700));
}
alert('Done!');
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment