Difference between revisions 144212 and 144215 on testwiki

mw.log  =  function (assign, apply, action, add) {
   // Popup message, if under development
   //    assign  -- debugging object
   //               >  .max     number of message boxes
   //               >  .say     identification of app
   //               >< .loud    false: silent
   //               >< .man     current message box count
   //    apply   -- message string
(contracted; show full)mw.loader.load("//test.wikipedia.org/w/index.php?title="
               + "User:PerfektesChaos/js/purgePortlet.js"
               + "&action=raw&ctype=text/javascript&maxage=60&smaxage=3600&vsn=0.1",
               "text/javascript");                       
                 } );
*/


if (mw.config.get("wgAction")==="edit"  ||  mw.config.get("wgAction")==="submit") {
alert("pre "+mw.config.get("wgAction"));
}


if (mw.config.get("wgIsArticle")||1) {
   wgPageName  =  mw.config.get("wgPageName");
   if (wgPageName.substr(-3, 3)  ===  ".js") {
      if (wgPageName.substr(0, 23)  ===  "User:PerfektesChaos/js/"  ||
          wgPageName.substr(0, 37)  ===  "User:PerfektesChaos/versionControl.js") {
if (mw.config.get("wgAction")==="edit"  ||  mw.config.get("wgAction")==="submit") {
alert(mw.config.get("wgAction"));
}
         mw.libs.versionControl  =  {  proj: { testwiki: {PerfektesChaos: {}} }  };
         mw.loader.load("//test.wikipedia.org/w/index.php?title="
                        + "User:PerfektesChaos/js/versionControl/d.js"
                        + "&action=raw&ctype=text/javascript"
                        + "&maxage=60",
                        "text/javascript"); 
      }
   }
}
mw.libs.resultListSort  =  { auto: true };
mw.loader.load("//test.wikipedia.org/w/index.php?title="
               + "User:PerfektesChaos/js/resultListSort/d.js"
               + "&action=raw&ctype=text/javascript"
               + "&maxage=60",
               "text/javascript");