User:Noreplyz/global.js

importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Noreplyz/scripts.js&action=raw&ctype=text/javascript');

// Edit Summaries window.dev = window.dev || {}; window.dev.editSummaries = { css: false, select: [ '(click to browse)', 'VSTF Rollbacks', [ 'Reverting vandalism', 'Spam', 'Reverting vandalism or Spam', 'Adding default profile', 'ToU Violation' ],       'VSTF Submit', [ 'Adding spam reports', 'Adding spam wikis', 'Adding vandalism reports', 'Removing duplicates' ],       'YogsWiki/Others', [ 'Cleanup', 'Spacing', 'Adding description', 'Adding Yogiverse', 'Episodes to Episodes2 Template (only YT)', 'Grammar/spelling' ]   ] };

// WHAM WHAMDelay = 100;

// IMPORTS importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:QuickDiff/code.js',        "u:dev:MediaWiki:Standard_Edit_Summary/code.js",        "u:dev:MediaWiki:ChatOptions/code.js",        "u:dev:MediaWiki:CustomChatPings/code.js"    ] });

// TWEAKS $(function {   $('All Pages').insertBefore('.AccountNavigation .subnav li:first');    $('Admins').insertBefore('.AccountNavigation .subnav li:first');    $('RC').insertBefore('.AccountNavigation .subnav li:first');    $('MS').insertBefore('.AccountNavigation .subnav li:first');    $('<a href="http://yogscast.wikia.com/wiki/Special:RecentChanges">YOGS</a></li>').insertBefore('.AccountNavigation .subnav li:first');    $('<a href="http://community.wikia.com/wiki/Special:RecentChanges">CC</a></li>').insertBefore('.AccountNavigation .subnav li:first');    $('<a href="http://vstf.wikia.com/wiki/Special:RecentChanges">VSTF</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

// Global edit count for user if ((mw.config.get("wgCanonicalNamespace") === 'User') || (mw.config.get("wgCanonicalNamespace") === 'Special' && mw.config.get("wgCanonicalSpecialPageName") === 'Contributions') ) { $(function {           var username;            username = $("h1").text;            $(' ').insertAfter("h1");            $(function { $.ajax(               {                    dataType: "jsonp",                    url: "http://community.wikia.com/api.php?action=query&list=users&ususers="+username+"&usprop=editcount&format=json",                    success:function(data)                    {                        document.getElementById("globaleditcount").innerHTML = data.query.users[0].editcount + " global edits";                    }                }); });       });    } })(this.jQuery, this.mediaWiki);
 * (function($, mw) {