User:JPhil2.0/global.js

//Quick create userpage var qtUserPageTemplate = ""; var qtEnableUserPageOverwrite = true; //Advanced oasis UI window.AdvancedOasisUI = { accountNavFollowedPages: false, accountNavWatchlist: false, categoryRedlink: true, RCHeader: true, DefaultSourceMode: true, lightbox: true, randomPageLimitedTo: '', activity2RC: false, userLang: true, }; //Ajax RC window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; window.ajaxCallAgain = window.ajaxCallAgain || []; window.ajaxCallAgain.push(highlightAnons); importArticles({   type: "script",    articles: [        "u:dev:MarkForDeletion/code.js",        "u:dev:RevealAnonIP/usercode.js",        "u:dev:QuickCreateUserPage/code.js",        "u:c:User:Prince(ss)_Platinum/vda.js",        "u:vda:MediaWiki:VDA2.-3.js",        "u:princess-platinum-test:MediaWiki:Stuff.js",        "u:dev:WHAM/code.js",        "u:dev:AjaxRC/code.js",        "u:dev:AjaxUndo/code.js",        "u:dev:AdvancedOasisUI/code.js",        "u:dev:PortableCSSPad/code.js",        "u:c:User:Lil'_Miss_Rarity/quicktools.js",        "u:dev:QuickTools/advanced.js"    ] }); function highlightAnons { //IP regular expression var ip = /\d{2,3}\.\d{2,3}\.\d{2,3}/; //Check if user is anon and highlight $(".mw-userlink").each(function {       var text = $(this).text;        if (text.match(ip)) {            //Highlight            $(this).css("background", "yellow");        }    }); } $(document).ready(function {   highlightAnons; }); $.getScript("https://raw.github.com/DoctorWhooves/Main/master/chat/Tabcomplete.js");

// Wiki Activity to Recent Changes if (mw.config.get('skin') === 'oasis') { $(function {       $("a[data-canonical='wikiactivity']").attr('href', '/wiki/Special:RecentChanges').text('Recent Changes');        if (mw.config.get('wgCityId') == 177) {            $("a[data-canonical='chat']").click(function (event) { event.preventDefault; });       }    }); }

// Account Navigation $(function { $('Global.css').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Global.js').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Special Pages').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('Leaderboard').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="/wiki/User blog:JPhil2.0">Blog</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="/wiki/Special:Contributions/JPhil2.0">Contributions</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });