Skip to content

Instantly share code, notes, and snippets.

@unbelauscht
Created July 30, 2023 19:33
Show Gist options
  • Save unbelauscht/fc08bde53ece05e63bd9297c9b613649 to your computer and use it in GitHub Desktop.
Save unbelauscht/fc08bde53ece05e63bd9297c9b613649 to your computer and use it in GitHub Desktop.
Bulk delete Youtube comment history
/*
Found here: https://webapps.stackexchange.com/questions/106093/how-do-i-bulk-delete-all-of-my-youtube-comments-and-replies#comment140001_115717
*/
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
} async function d() {
var i=0;
document.body.querySelectorAll('.VfPpkd-Bz112c-LgbsSe.yHy1rc.eT1oJ').forEach(
async (e) => { await sleep(1000 * i++); e.click(); });
} d();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment