User:Agent Spy/global.js

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

importArticles({	type: 'script',       articles: [		'u:c:User:Seaside98/ChatHacks.js', //Chat Hacks                'u:dev:WallGreetingButton/code.js', //Message Wall Greeting Edit Button                'u:dev:RelatedDiscussionsModule/code.js', //Adds Related Discussions Module                'u:dev:AjaxBatchDelete/code.js', //Ajax Batch Delete                'u:dev:AjaxTemplate/code.js', //Ajax Template                'u:dev:DupImageList/code.js', //DupImageList                'u:dev:OldFilePages/code.js', //Something, need to find out what                'u:dev:Thread Inspection/code.js', //Thread Inspection                'u:legomessageboards:User:Agent_Spy/wham.js', //WHAM                'u:dev:QuickTools/code.js', //Adds a OuickTools Menu                'u:c:User:Seaside98/normal.js', //Seaside\'s Normal.js! :D                'u:lmbtest:MediaWiki:AjaxRC.js', //heavily modified by ShermanTheMythran 'u:c:User:Seaside98/skin.js', //Qui I think 'u:dev:DisplayClock/code.js', 'u:dev:MarkForDeletion/code.js', //Adds a quick way to mark for Deletion 'u:dev:AjaxUndo/code.js', //Adds a quick way to undo edits 'u:dev:FloatingToc/code.js', //Adds a way to move to TOC 'u:c:User:Agent_Spy/mywiki.js', //Adds in some nice features 'u:dev:VisualSpellCheck/code.js', //Adds SpellCheck to Visual Editor 'u:c:User:Monchoman45/ChatHacks.js', 'u:runescape:User:Joeytje50/ChatLogger.js', ] });

/* 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');    } });

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

'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)');    } }); importScriptPage('PortableCSSPad/code.js', 'dev');