Last active
January 13, 2024 23:55
-
-
Save tadeubdev/db3f143aef398d591626dfb22ca26615 to your computer and use it in GitHub Desktop.
Remove all videos from watch later on youtube
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
(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