Skip to content

Instantly share code, notes, and snippets.

@petitJAM
Last active April 29, 2021 18:03
Show Gist options
  • Save petitJAM/38f76220fa34a0d0b9f4714bd53b1e7e to your computer and use it in GitHub Desktop.
Save petitJAM/38f76220fa34a0d0b9f4714bd53b1e7e to your computer and use it in GitHub Desktop.
Remove videos from YouTube channel Videos tab
// 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