User:Agent Spy/global.js

importArticles({   type: 'script',    articles: [        'u:legomessageboards:User:Seaside98/skin.js',        'u:c:User:Seaside98/normal.js',        'u:c:User:ToaMeiko/skin-mods.js',        'u:dev:OldFilePages/code.js',        'u:dev:RelatedDiscussionsModule/code.js',        'u:dev:WallGreetingButton/code.js',        'u:dev:AjaxBatchDelete/code.js',        'u:dev:DupImageList/code.js',        'u:dev:WHAM/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:DisplayClock/code.js',        'u:dev:FloatingToc/code.js',        'u:dev:VisualSpellCheck/code.js',        'u:dev:MarkForDeletion/code.js',        'u:dev:AutoEditDropdown/code.js',        'u:dev:OldFilePages/code.js',        'u:dev:Code/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:QuickTools/advanced.js'    ] });

// Add back WikiActivity $( '#WikiHeader > nav .subnav-2.firstChild' ).prepend( 'Wiki Activity' );

//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 $(' <a href="/wiki/Special:Statistics">Statistics</a> (<a href="/wiki/Special:WikiStats">Advanced</a>) </li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); //********************   //Google search current page $(' <a href="http://www.google.com/search?q=' + wgPageName + '" target="_blank">Search this title on Google</a></li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); //********************   //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> (<a href="mailto:support@wikia.com">Email</a>) </li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); //********************   //Add links to sandbox wiki if (wgDBname !== "trcsandbox") { $('<a href="http://trcsandbox.wikia.com">Test Wiki</a> </li>').insertAfter('.AccountNavigation > li > .subnav > li:nth-child(5)'); }   //********************    //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)); //Chat scripts importScriptPage('User:Seaside98/ChatHacks.js', 'c'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); //Move files if (wgPageName.indexOf("Special:MovePage/File:") != -1 || (wgCanonicalNamespace == "File" && Storage)){  LIRoptions = {        bottomMessage: 'This appears below the buttons on Special:MovePage',        editSummary: 'Updating file link (automatic)',        singleButtonText: 'Rename and replace',        queueButtonText: 'Rename and add to queue'   };   importScriptPage("FileUsageAuto-update/code.js/min.js", "dev"); }

// 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; }

// Talk Pages window.talkWikis = ['legomessageboards']; importScriptPage('UserTalkNotifications/code.js', 'dev');