Skip to content

Instantly share code, notes, and snippets.

@THEMVFFINMAN
Created July 8, 2015 17:56
Show Gist options
  • Save THEMVFFINMAN/bc1cd78cea8eded6ffeb to your computer and use it in GitHub Desktop.
Save THEMVFFINMAN/bc1cd78cea8eded6ffeb to your computer and use it in GitHub Desktop.
This script will remove everything in your Reddit Moderation Queue
/*
A solution to a rather unique problem. I was hired on as a CSS admin for a subreddit and ended up having to do
a lot more than just CSS. Needless to say I became the only active mod. Now it was a huge pain to look at the
Moderation Queue and see crap from 4-5 years ago. It's basically meaningless now to sift through them and
determine which is spam and which isn't. So I created this script to just remove everything.
P.S. Nothing I can do about the full second time limit. Reddit won't register it if it's anything less.
*/
javascript: (function() {
var q = [];
$('.pretty-button.neutral').each(function() {
var that = this;
var f = function(index) {
$(that).trigger('click');
$(that).trigger('mousedown');
setTimeout(function() {
if (q[index]) {
q[index](index + 1);
} else {
if (upVoteTimer) {
window.clearTimeout(upVoteTimer);
}
}
}, 1000);
};
q.push(f);
});
var upVoteTimer = window.setTimeout(function() {
q[0](1);
}, 50);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment