Created
November 4, 2021 16:25
-
-
Save Explosion-Scratch/ebd740b817c9d5fd9e26677836faf098 to your computer and use it in GitHub Desktop.
Remove all videos from watch later (YouTube)
This file contains hidden or 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
PLEASE_STOP = false; | |
//set PLEASE_STOP to true to stop removing videos | |
while (window.PLEASE_STOP === false) { | |
document.querySelector("ytd-playlist-video-renderer .yt-icon-button").click(); | |
await new Promise((r) => setTimeout(r, 100)); | |
[...document.querySelectorAll("ytd-menu-popup-renderer tp-yt-paper-item")] | |
.find((i) => i.innerText.includes("Remove from")) | |
.click(); | |
await new Promise((r) => setTimeout(r, 400)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment