Skip to content

Instantly share code, notes, and snippets.

@john-science
Last active June 6, 2020 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-science/17a556f80c304bdc926ec15c2d41e4ac to your computer and use it in GitHub Desktop.
Save john-science/17a556f80c304bdc926ec15c2d41e4ac to your computer and use it in GitHub Desktop.
delete Reddit comments
// Log in to Reddit, open you comment page, and paste this into your Console. Done
var $domNodeToIterateOver = $('.del-button .option .yes'),
currentTime = 0,
timeInterval = 500; // minimum time between deletes
$domNodeToIterateOver.each(function() {
var _this = $(this);
currentTime = currentTime + Math.floor(Math.random() * timeInterval) + timeInterval;
setTimeout(function() {
_this.click();
}, currentTime);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment