User:Pcj/UnblockUsersMatchingAPattern.js

a = new mw.Api; a.get({action:"query",list:"blocks",bklimit:500}).done(function(data){	for (b in data.query.blocks) {		block = data.query.blocks[b];		if (block.user.match(/[\d]+\.[\d]+\.[\d]+\.[\d]+/) || block.by=="Abuse filter") a.postWithToken('csrf',{action:"unblock",user:block.user,reason:"Abuse filter gone mad"});	} });