Created
March 5, 2023 13:12
-
-
Save bernatgy/cf948f8b538c99f3178c8ebf480fe19f to your computer and use it in GitHub Desktop.
A script to execute in the Browser DevTools Console to slowly clear out your Watch Later playlist
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
function openMenu() { | |
var items = document.querySelectorAll('ytd-playlist-video-renderer > #menu button'); | |
items[0].click(); | |
} | |
function clickRemove() { | |
var menuItems = document.querySelectorAll('tp-yt-paper-listbox > ytd-menu-service-item-renderer'); | |
menuItems[2].click(); | |
} | |
setInterval(function () { | |
openMenu(); | |
setTimeout(function () { | |
clickRemove(); | |
}, 300); | |
}, 750); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment