User:Agent Spy/personal.js

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

(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));