User:Agent Spy/global.js

cacheSkip = []; cacheSkipLimit = 1000; //Script Imports importArticles({   type: 'script',    articles: [        'u:dev:AdvancedOasisUI/code.js',        'u:dev:AjaxBatchDelete/code.2.js',        'u:dev:AjaxDiff/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:AjaxUndo/code.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:DisplayClock/code.js',        'u:dev:DupImageList/code.js',        'u:dev:FileUsageAuto-update/code.js',        'u:dev:FloatingToc/code.js',        'u:dev:LastEdited/code.js',        'u:dev:MarkForDeletion/code.js',        'u:dev:Message/code.js',        'u:dev:OldFilePages/code.js',        'u:dev:PageMakerPro/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:PurgeBlogs/code.js',        'u:dev:QuickCreateUserPage/code.js',        'u:dev:QuickToolsv2/code.js',        'u:dev:RedirectManagement/code.js',        'u:dev:RelatedDiscussionsModule/code.js',        'u:dev:VisualSpellCheck/code.js', 'u:dev:WallGreetingButton/code.js', 'u:dev:WHAM/code.2.js', 'u:rs:User:Joeytje50/tabkey.js', ] }); //AdvancedOasisUI AdvancedOasisUI = {     accountNavFollowedPages: false,      accountNavWatchlist: false,      categoryRedlink: true,      RCHeader: true,      DefaultSourceMode: true,      lightbox: true,      randomPageLimitedTo: '',      activity2RC: true,      userLang: true, }; //Chat Scripts Imports importScriptPage('!kick/code.js', 'dev'); importScriptPage('User:Agent Spy/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/tabinsert.js', 'rs'); //BotoneraPopups importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev'); // Create if not exists if (!window.BotoneraPopups) {	window.BotoneraPopups = {}; } // Open popup on keypress if (BotoneraPopups.setDisplayOnKeyDown) {	BotoneraPopups.setDisplayOnKeyDown(true); } else {	BotoneraPopups.displayOnKeyDown = true; }

//Last Edited window.lastEdited = { avatar: false, size: true, diff: true, comment: true, time: 'timeago', lang: 'en', namespaces: { include: [], exclude: [] } };

//QuickTools var QuickToolsAdvancedtop = false;

//Talk Pages window.talkWikis = ['lmbw']; importScriptPage('UserTalkNotifications/code.js', 'dev'); //QuickCreateUserpage var qtUserPageTemplate = ''; var qtEnableUserPageOverwrite = true; //Combined all of the scripts into one for efficiency (function(window, mw, $) {   //Edit count tab    var wikiUrl = window.location.hostname;    var olds = $(".tabs-container > ul.tabs").html;    var address = "http://" + wikiUrl + "/wiki/Special:Editcount/" + wgTitle;    var adds = "Editcount";    var news = olds + adds;    $(".tabs-container > ul.tabs").html(news);    //********************    //Add sandbox link to the user dropdown on the Wikia bar    $('Sandbox  ').insertAfter('.AccountNavigation > li > .subnav > li:first-child');    //********************    //Add editcount link to the user dropdown on the Wikia bar    $('My editcount   ').insertAfter('.AccountNavigation > li > .subnav > li:nth-child(3)');    //******************** //Add quicklink to Special:Statistics $(' Statistics ').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); //********************   //Add quicklink to Special:WikiStats $(' Advanced</a> </li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); //********************   //Add back WikiActivity $( '#WikiHeader > nav .subnav-2.firstChild' ).prepend( '<a class="subnav-2a" href="/wiki/Special:WikiActivity">Wiki Activity</a></li>' ); //********************   //Admin CP link in Wikia Bar if (wgUserGroups.indexOf('sysop')!=-1||wgUserGroups.indexOf('bureaucrat')!=-1) { $('.WikiHeader nav ul li.marked ul').append('<a class="subnav-2a" href="/wiki/Special:AdminDashboard">Admin CP</a></li>'); }   //********************    //Quick links to Special:Contact $(' <a href="/wiki/Special:Contact/general">Contact Wikia</a> </li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); //********************   //Email Wikia Staff $(' <a href="mailto:support@wikia.com">Email Wikia</a> </li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); //********************   //History links in edit window if ( wgNamespaceNumber == "0" ) { $('<span class="cke_toolbar_expand" style="padding-left: 10px; border-left: 1px solid #ccc;"><a class="expand" href="/wiki/' + wgTitle + '?action=history" target="_blank" style="display: inline;"> view history ⌚ </a> ').insertAfter('.cke_toolbar_expand:first-of-type'); } else { $('<span class="cke_toolbar_expand" style="padding-left: 10px; border-left: 1px solid #ccc;"><a class="expand" href="/wiki/' + wgCanonicalNamespace + ':' + wgTitle + '?action=history" target="_blank" style="display: inline;"> view history ⌚ </a> ').insertAfter('.cke_toolbar_expand:first-of-type'); } }(this, this.mediaWiki, this.jQuery));