Skip to content

Instantly share code, notes, and snippets.

@dataserver
Last active July 13, 2022 13:08
Show Gist options
  • Save dataserver/8b123b79f5537b904e608a192412ca9d to your computer and use it in GitHub Desktop.
Save dataserver/8b123b79f5537b904e608a192412ca9d to your computer and use it in GitHub Desktop.
youtube bulk comment delete
https://webapps.stackexchange.com/questions/138942/how-to-bulk-delete-youtube-comments-without-deleting-or-deactivating-the-channel
Go to https://www.youtube.com/feed/history/comment_history. Press and hold "End" key on the keyboard until the page stops loading any comments. Click Erasure icon and "click to delete all comments"20 de fev. de 2020
--------------------------
I have a solution that does not require you to download anything. It's kind of hacky but I mean anyone can do it.
So to delete all of your Youtube comments automatically, go to your YouTube Comment History
First, I'd recommend deleting one comment and disabling the confirmation warning.
Then, open the console in your browser(in chrome press ctrl+shift+j), then paste in this code :
num=6
for(i=0;i<20;i++){
y = document.getElementsByClassName('VfPpkd-rymPhb-ibnC6b');
y[num].click();
num=num+2;
}
Then press Enter.
To explain this code: it grabs the buttons on the page, then grabs the first delete button and clicks it, then goes through that cycle 20 times. So if you want to delete more than 20 comments at once you have to change 20 to a higher number. Only so many comments appear on the page at once so I just set it to 20.
Hopefully this lightweight solution will help someone out and save a lot of time and clicks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment