User:ToaMeiko-fduser/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importScriptPage('MediaWiki:Chat.js/options.js','cod');

/* 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 a link to Recent Changes to the Wikia nav */ $(function {       $('.WikiHeader nav ul li.marked ul').append('Recent Changes'); });

/* Add a link to Logs to the Wikia nav */ $(function {       $('.WikiHeader nav ul li.marked ul').append('Log'); });

/* Add contributions link to the user dropdown on the Wikia bar */ $(document).ready(function {   $('My contributions  ').insertAfter('.AccountNavigation > li > .subnav > li:first-child'); });

$(document).ready(function {   if (mw.config.get('wgUserGroups') === null)        $('<a href="/wiki/Special:MyContributions">My contributions</a>  </li>').insertBefore('.contribute ul li:first-child'); });

/* Add editcount link to the user dropdown on the Wikia bar */ $(document).ready(function {   $('<a href="/wiki/Special:Editcount/' + wgUserName + '">My editcount</a>  </li>').insertAfter('.AccountNavigation > li > .subnav > li:nth-child(3)'); }); /* Admin CP link in Wikia Bar */ $(document).ready(function {   if (wgDBname !== "meikotest" || wgDBname !== "lego" || wgDBname !== "legospace") {        $('.WikiHeader nav ul li.marked ul').append('<a class="subnav-2a" href="/wiki/Special:AdminDashboard">Admin CP</a></li>');    } });

/* Add quicklink to Special:Statistics */ $(document).ready(function {   $(' <a href="/wiki/Special:Statistics">Statistics</a> (<a href="/wiki/Special:WikiStats">Advanced</a>)  </li>').insertAfter('.toolbar > .tools > li:nth-child(3)'); });

/* Wikia API CP on all wikis */ $(document).ready(function {   if (wgDBname !== "api542") {        $('<a href="http://api.wikia.com/wiki/Special:ApiGate">API Control Panel</a>  </li>').insertAfter('.AccountNavigation > li > .subnav > li:nth-child(4)');    } });

/* Search wiki on WAM feature */ $(document).ready(function {   var wikiWAMsearch = window.location.hostname;    $(' <a href="http://www.wikia.com/WAM?verticalId=&date=&langCode=&searchPhrase=' + wikiWAMsearch + '">Search this wiki on WAM</a>  </li>').insertAfter('.toolbar > .tools > li:nth-child(4)'); });

/* Purge page */ $(document).ready(function {   var currentPageURL = window.location.href;    $(' <a href="' + currentPageURL + '?action=purge">Purge</a></li>').appendTo('.WikiaBarWrapper .toolbar .tools .tools-menu'); });