User:Technical 13/Scripts/OrphanStatus.js: Difference between revisions

Content deleted Content added
Technical 13 (talk | contribs)
Start putting together deOrphaning feature. (currently not functional, work in progress).
Technical 13 (talk | contribs)
working on "deOrphan" link...
Line 4:
action:"query",
titles: mw.config.get( 'wgPageName' ),
prop: "revisions|info",
intoken: "edit",
rvprop: "content",
Line 20:
token: mw.user.tokens.get( 'editToken' )
};
console.log("Replacement wikitext: %O", deOrphanerContent.replace(/\{\{Orphan(.*?)\}\}/gi, ""));
$.post(mw.config.get( 'wgScriptPath' )+"/api.php", deOrphanerSubmit, function(deOrphanerSesponse){
console.log("%O", deOrphanerSesponse);
$(".loadinganimation").html("Article deOrphaned!");
});