User:Writ Keeper/Scripts/massRevdel.js: Difference between revisions

Content deleted Content added
ensure mediawiki.api is loaded
up limit to 500, since admins have apihighlmiit
Line 1:
$.when( mw.loader.using( 'mediawiki.api' ), $.ready ).then( function()
{
var apiLimit = 500;
var api = new mw.Api();
if(mw.config.get("wgCanonicalSpecialPageName") == "Contributions")
Line 57 ⟶ 58:
{
revCount = ind + 1;
if(ind > 49apiLimit - 1)
{
alert("You can't do more than 50" + apiLimit + " revdels at once! Canceling...");
return false;
}
Line 209 ⟶ 210:
{
revCount = ind + 1;
if(ind > 49apiLimit - 1)
{
alert("You can't do more than 50" + apiLimit + " revdels at once! Canceling...");
return false;
}