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

Content deleted Content added
Technical 13 (talk | contribs)
Ahh-ha! It was failing to deOrphan the pages tagged as orphans using the OLD style parameters for Multiple issues!
Technical 13 (talk | contribs)
"SyntaxError: nothing to repeat" fix.
Line 1:
if(mw.config.get('wgNamespaceNumber') === 0 && mw.config.get('wgAction') === "view" && $.inArray("All orphaned articles", mw.config.get('wgCategories')) >= 0){
function deOrphan(backLinks){
$(".loadinganimation").html("Article deOrphaning in progress...");
Line 16:
deOrphanerContent = deOrphanerContent
.replace(/\{\{Orphan(.*?)\}\}[\|\n]/gi, "")// Parse out orphan template (not) in multiple issues
.replace(/\| *Orphan *= *(*.*?)\n?/gi, "");// Parse out old style orphan paramater from multiple issues
var deOrphanerSubmit = {
action: "edit",