Last active
July 7, 2023 09:38
-
-
Save alexamy/091e3f1444bb6185a349c61e6f96e819 to your computer and use it in GitHub Desktop.
Remove all videos from Youtube Watch Later playlist (run in console on https://www.youtube.com/playlist?list=WL)
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
setInterval(function deleteOne() { | |
const actions = document.querySelector("ytd-playlist-video-renderer button[aria-label='Меню действий']"); | |
actions.click(); | |
setTimeout(() => { | |
const icon = document.querySelector("path[d='M11 17H9V8h2v9zm4-9h-2v9h2V8zm4-4v1h-1v16H6V5H5V4h4V3h6v1h4zm-2 1H7v15h10V5z']"); | |
const remove = icon.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; | |
remove.click(); | |
}, 10); | |
}, 20); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment