Created
September 12, 2019 19:03
-
-
Save krmax44/a0d8eeb3ee4358dd2f7d956ef92e8358 to your computer and use it in GitHub Desktop.
Remove all videos from YouTube Watch Later playlist
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
/* | |
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