Skip to content

Instantly share code, notes, and snippets.

@arminrosu
Last active December 18, 2015 02:09
Show Gist options
  • Save arminrosu/5709391 to your computer and use it in GitHub Desktop.
Save arminrosu/5709391 to your computer and use it in GitHub Desktop.
Lazy man's way of adding wordpress spam users to stopforumspam database
var key = '12345678901234';
jQuery('#the-list tr').each(function(){
$tr = jQuery(this);
var spammer = {
'username': $tr.find('.username a').first().text(),
'email': $tr.find('.email a').children().remove().end().text(),
'ip_addr': $tr.find('.signup_ip em').text(),
'api_key': key
}
jQuery.post(
'http://www.stopforumspam.com/add.php',
spammer,
function( response ) {
console.log(response);
},
'jsonp' // will throw error as it won't respond; data will be submitted
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment