Skip to content

Instantly share code, notes, and snippets.

@bwheeler96
Forked from andrhamm/delete-reddit-history.js
Created September 22, 2017 18:07
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 bwheeler96/e4ca466d8ff036a7054dea60428ab9db to your computer and use it in GitHub Desktop.
Save bwheeler96/e4ca466d8ff036a7054dea60428ab9db to your computer and use it in GitHub Desktop.
Delete reddit comment and post history
// Load user profile page, if using RES scroll so many comments are loaded onto the page
// then enter the following in the browser's developer console.
// it will delete 1 post/comment every 1500ms
var $domNodeToIterateOver = $('.del-button .option .yes'),
currentTime = 0,
timeInterval = 1500;
$domNodeToIterateOver.each(function() {
var _this = $(this);
currentTime = currentTime + timeInterval;
setTimeout(function() {
_this.click();
}, currentTime);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment