Created
July 30, 2023 19:33
-
-
Save unbelauscht/fc08bde53ece05e63bd9297c9b613649 to your computer and use it in GitHub Desktop.
Bulk delete Youtube comment history
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
/* | |
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