Last active
June 6, 2020 15:26
-
-
Save john-science/17a556f80c304bdc926ec15c2d41e4ac to your computer and use it in GitHub Desktop.
delete Reddit comments
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
// 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