User:Agent Spy/global.js

/* Wikia Skin Tweaks */ importScriptPage( 'User:ToaMeiko/skin-mods.js', 'c' );

/* View history link in edit window */ $(document).ready(function {   if ( wgNamespaceNumber == "0" ) {         $(' view history ⌚  ').insertAfter('.cke_toolbar_expand:first-of-type');    } else {        $(' view history ⌚  ').insertAfter('.cke_toolbar_expand:first-of-type');    } });

importArticles({   type: 'script',    articles: [        'w:dev:WallGreetingButton/code.js'    ] });

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"); }

importArticles({   type: 'script',    articles: [        'u:dev:RelatedDiscussionsModule/code.js'    ] });

importScriptPage('AjaxBatchDelete/code.js', 'dev');

importScriptPage('AjaxTemplate/code.js', 'dev');

importScriptPage('DupImageList/code.js', 'dev');

importArticles({   type: 'script',    articles: [        'u:dev:OldFilePages/code.js'    ] });

importScriptPage('Thread Inspection/code.js', 'dev');

importScriptPage('WHAM/code.js', 'dev');

importScriptPage('QuickTools/code.js', 'dev');

importScriptPage('User:Seaside98/normal.js', 'c');

/*AjaxRefresh*/ importScriptPage('MediaWiki:AjaxRC.js','lmbtest'); //heavily modified by ShermanTheMythran

importScriptPage('User:Agent_Spy/wham.js','legomessageboards'); importScriptPage('User:Seaside98/skin.js'); importArticle({type:'script', article:'w:c:dev:DisplayClock/code.js'}); importScriptPage( 'AjaxUndo/code.js', 'dev' ); importArticles({   type: 'script',    articles: [        'u:dev:FloatingToc/code.js'    ] }); importScriptPage('User:Agent_Spy/mywiki.js', 'c'); importArticle({type: 'script', article: 'w:c:dev:VisualSpellCheck/code.js'}); importScriptPage("MarkForDeletion/code.js", "dev"); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c');

/* Add Editcount tab on all user pages and user talk pages */ $(function {   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 */ $(document).ready(function {   $('Sandbox  ').insertAfter('.AccountNavigation > li > .subnav > li:first-child'); }); /* Add editcount link to the user dropdown on the Wikia bar */ $(document).ready(function {   $('My editcount </a>  </li>').insertAfter('.AccountNavigation > li > .subnav > li:nth-child(3)'); }); /* Add quicklink to Special:Statistics */ $(document).ready(function {   $(' <a href="/wiki/Special:Statistics">Statistics</a> (<a href="/wiki/Special:WikiStats">Advanced</a>)  </li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); }); /* Purge page */ $(document).ready(function {   var currentPageURL = window.location.href;    $(' <a href="' + currentPageURL + '?action=purge">Purge this page</a></li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); }); /* Search Google */ $(document).ready(function {   $(' <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>'); }

/* Quicklink to Special:Contact */ $(document).ready(function {   $(' <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 link to my test wiki */ $(document).ready(function {   if (wgDBname !== "trcsandbox") {        $('<a href="http://trcsandbox.wikia.com">Test Wiki</a>  </li>').insertAfter('.AccountNavigation > li > .subnav > li:nth-child(5)');    } });