Skip to content

Instantly share code, notes, and snippets.

@tadeubdev
Last active January 13, 2024 23:55
Show Gist options
  • Save tadeubdev/db3f143aef398d591626dfb22ca26615 to your computer and use it in GitHub Desktop.
Save tadeubdev/db3f143aef398d591626dfb22ca26615 to your computer and use it in GitHub Desktop.
Remove all videos from watch later on youtube
(async () => {
for (let btn of document.querySelectorAll('#contents .dropdown-trigger.style-scope.ytd-menu-renderer')) {
btn.click();
await (async () => {return new Promise(resolve => setTimeout(resolve, 100))})();
document.querySelectorAll('ytd-popup-container ytd-menu-service-item-renderer')[2].click();
await (async () => {return new Promise(resolve => setTimeout(resolve, 500))})();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment