Skip to content

Instantly share code, notes, and snippets.

View claudiojunior-me's full-sized avatar

Claudio Junior claudiojunior-me

View GitHub Profile
claudiojunior-me /
Created January 8, 2022 14:21 — forked from astamicu/Remove videos from Youtube Watch Later
Script to remove all videos from Youtube Watch Later playlist

UPDATED 3.12.2020

The old version of youtube with "disable_polymer" is not working anymore, so the script also stopped working.

Thanks to JanTheDeveloper we have a new working script. Big up!

I just changed the '//span[contains(text(),"Watch later")]', to '//span[contains(text(),"Remove from")]', and it should work for any playlist, not just the watch later one. (thanks to hudsonite for the tip)

setInterval(function () {
 document.querySelector('#primary button[aria-label="Action menu"]').click();