User:Agent Spy/global.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:Seaside98/normal.js', 'c'); importScriptPage('User:Seaside98/global.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   ').insertAfter('.AccountNavigation > li > .subnav > li:nth-child(3)'); }); /* Add quicklink to Special:Statistics */ $(document).ready(function {   $(' Statistics (Advanced)  </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'); }); /* ListUsers link in Wikia Bar */ if (wgUserGroups.indexOf('rollback')!=-1) { $('.WikiHeader nav ul li.marked ul').append('<a class="subnav-2a" href="/wiki/Special:ListUsers">Users List</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>'); }

/* 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)');    } }); /* Remove "Wiki Activity" from the contribute button since it's redundant to have it there and in the Wikia Bar */ $(document).ready(function {   $('.contribute .WikiaMenuElement li a[data-id="wikiactivity"]').remove;    $('.contribute .WikiaMenuElement li:empty').remove; });