User:Bouldersplinter/global.js

// Old file pages

OFPoptions = {'showlinks': true};

importArticles({   type: "script",    articles: [        "u:dev:OldFilePages/code.js",        "u:dev:TabKeyInserter/code.js",        "u:dev:NoImageLightbox/code.js",        "u:dev:MassCategorization/code.js"    ] });

//Redlinks are annoying... $("a.new").each(function{   //Special:Upload?wpDestFile=SlifertheSkyDragon-DDM-FIGURE.jpg&flow=create-page-article-redlink    //var isFile = $(this).attr("href").match(/Special:Upload\?wpDestFile=(.*?)[&$]/i);   // var href = $(this).attr("href");   // if (isFile !== null)     //   $(this).attr("href", $(this).attr("href").substr; $(this).attr("href", $(this).attr("href").replace(/&?redlink=1/gi, "").replace(/&?action=edit/gi, "")); });