Skip to content

Instantly share code, notes, and snippets.

@srescio
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srescio/abb78c8a06c5294f784b to your computer and use it in GitHub Desktop.
Save srescio/abb78c8a06c5294f784b to your computer and use it in GitHub Desktop.
YOURLS js console IP batch listing & delete
//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');
})
@srescio
Copy link
Author

srescio commented Oct 12, 2014

more info at https://sresc.io/1HR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment