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

Content deleted Content added
Use a GET request for fetching deletion reasons
fix?
Line 1:
$(document).ready(function()
{
var api = new mw.Api();
if(mw.config.get("wgCanonicalSpecialPageName") == "Contributions")
{
Line 184 ⟶ 185:
ajaxData.show=revealString;
}
$api.postpostWithToken('/w/api.php/csrf', ajaxData, function()
{
numCompleted++;
Line 370 ⟶ 371:
alert("Something went wrong, so we're going to abort without doing anything.");
}
$api.postpostWithToken('/w/api.php/csrf', ajaxData,function()
{
numCompleted++;