Skip to content

Instantly share code, notes, and snippets.

@skaiser
Last active August 29, 2015 13:56
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 skaiser/9268019 to your computer and use it in GitHub Desktop.
Save skaiser/9268019 to your computer and use it in GitHub Desktop.
Bookmarklet to speed deleting spam users in "Confirm Email" state in Vanilla Forum
javascript:(function () {
var href = $('a[href$="Confirm+Email"]').first().parent().siblings().find('a').filter(function(index) { return $(this).text() === "Delete"; }).attr('href');
if (href) {
window.location = href;
}
href = $('a').filter(function(index) { return $(this).text() === "Remove User Content"; }).attr('href');
if (href) {
window.location = href;
}
if ($('#Form_Form').attr('action') && $('#Form_Form').attr('action').match(/delete$/)) {
$('#Form_Form')[0].submit();
}
href = $('a').filter(function(index) { return $(this).text() === "Back to all users"; }).attr('href');
if (href) {
window.location = href;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment