Last active
August 29, 2015 14:07
-
-
Save srescio/abb78c8a06c5294f784b to your computer and use it in GitHub Desktop.
YOURLS js console IP batch listing & delete
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
//Get all IPs to add in YourlsBlacklistIPs plugin for manual blacklisting | |
var allIP = []; | |
$('td.ip').each(function(){ | |
var ip = $(this).text(); | |
allIP.push(ip); | |
}) | |
console.log( allIP.join('\n') ); | |
//Click all delete buttons, then let the enter key feast on the alerts | |
$('td.actions').each(function(){ | |
var deleteBtn = $(this).find('.button_delete'); | |
deleteBtn.trigger('click'); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
more info at https://sresc.io/1HR