Last active
April 29, 2021 18:03
-
-
Save petitJAM/38f76220fa34a0d0b9f4714bd53b1e7e to your computer and use it in GitHub Desktop.
Remove videos from YouTube channel Videos tab
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
// Filter videos by title containing this text. | |
var text = "Repentance" | |
document.querySelectorAll('ytd-grid-video-renderer').forEach((video) => { | |
if (video.querySelector('a#video-title').text.includes(text)) { | |
video.remove() | |
} | |
}); | |
// A loading indicator gets stuck after deleting a bunch of stuff, so this deletes them all. | |
document.querySelectorAll('ytd-continuation-item-renderer').forEach((spinner) => { spinner.remove() }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment