Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove all videos from a YouTube playlist. Open a playlist page and run this script. Adjust the interval time if needed, but as low as 50, or maybe lower, should be fine.
setInterval(() => {
document.querySelector('.ytd-playlist-video-list-renderer #menu').click()
setTimeout(() => document.querySelector('#items > ytd-menu-service-item-renderer:nth-child(4) > tp-yt-paper-item > yt-formatted-string').click(), 1)
}, 100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment