Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.