User:Jr Mime/global.js

// Text changes $('[data-canonical="wikiactivity"]').attr('href', '/wiki/Special:RecentChanges'); $('[data-canonical="wikiactivity"]').text('Recent Changes'); if (wgCanonicalSpecialPageName == "Movepage") { $('.WikiaPageHeader h1').text('Renaming a file'); $('.AdminDashboardGeneralHeader h1').text('Renaming a file'); }

// Anon highlight (By Lil' Miss Rarity) function highlightAnons { //IP regular expression var ip =/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/; //Check if user is anon and highlight $(".mw-userlink").each(function {       var text = $(this).text;        if (text.match(ip)) {            //Highlight            $(this).css("color", "#848484");        }    }); } $(document).ready(function {   highlightAnons; });

// Changes WikiaContributer to IP in Article Comments (by Rappy) $('#WikiaArticleComments .edited-by a[href*="/wiki' + '/Special:Contributions"]').each(function {   $(this).html(this.href.substring(this.href.lastIndexOf('/') + 1)); });

// Imports $.getScript('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/WantedPagesBatchRedlinks.js'); importScriptURI('http://internal.vstf.wikia.com/wiki/User:Jr_Mime/scripts.js?action=raw&ctype=text/javascript&templates=expand'); window.ajaxPages = ["Special:RecentChanges", "Special:NewPages", "Special:WikiActivity", "Special:AbuseLog", "Spécial:Modifications_récentes", "Especial:Mudanças_recentes", "Natatangi:Mga_huling_binago"]; window.ajaxCallAgain = window.ajaxCallAgain || []; window.ajaxCallAgain.push(highlightAnons); OFPoptions = {'showlinks': false}; var autoWelcomeText = ''; importArticles({   type: "script",    articles: [        // Useful buttons        "u:c:User:Jr Mime/buttons.js",        // Advanced tools        "w:c:dev:QuickTools/advanced.js",        // Auto RC        "w:c:dev:AjaxRC/code.js",        // Undo+        "w:c:rs:User:Suppa_chuppa/undoplus.js",        // Template button        "w:c:mlp:User:Jr Mime/MarkForTemplate/General.js",        // Kill Tool        "w:c:answers:User:The Mol Man/Annihilate.js",        // HotCat        "w:c:answers:MediaWiki:Gadget-HotCat.js",        // WHAM        "w:c:dev:WHAM/code.js",        // File uglyness fix        "w:c:dev:NoImageLightbox/code.js",        // CSS pad        "w:c:dev:PortableCSSPad/code.js",        // Cache script        "w:c:dev:CacheCheck/code.js",        // Old files        "w:c:dev:OldFilePages/code.js",        // File Usage Auto update        "w:c:dev:FileUsageAuto-update/code.js",        // Mini Complete "w:c:dev:MiniComplete/code.js", // Category Rename Auto Update "w:c:dev:CategoryRenameAuto-update/code.js", // Auto Welcome (static please) "w:c:rs:User:Quarenon/autowelcome.js", ] });