Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save karuppasamy/9ef615461f252db44463b80fb1705fea to your computer and use it in GitHub Desktop.

Select an option

Save karuppasamy/9ef615461f252db44463b80fb1705fea to your computer and use it in GitHub Desktop.
Script to remove all videos from Youtube Watch Later playlist
  1. Open your watch later playlist on youtube.
  2. Open the development console for your browser ( Ctrl+Shift+J for chrome )
  3. paste this script into the console
var lastNumVideos

function removeOne() {
	var numVideos = document.querySelectorAll('.pl-video-edit-remove').length
	if (numVideos === lastNumVideos) {
		return
	}
	if (numVideos < 10) {
		document.querySelector('.browse-items-load-more-button').click()
   }
	document.querySelector('.pl-video-edit-remove').click()
	lastNum = numVideos
}
setInterval(removeOne, 30)
  1. Press the enter key
  2. Watch your watch later playlist empty in realtime :D

If you need to stop the script simply close or refresh the playlists's tab in your browser.

Enjoy! :D

The script can be left open forever without flooding youtube with requests, it will just make lots of unnecessary DOM queries, which shouldn't be a real problem.

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