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 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)        $('My contributions  ').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 */ /* DISABLED UNTIL FIXED */ //$(function { //   if(wgUserGroups == "sysop") { //        $('.WikiHeader nav ul li.marked ul').append('<a class="subnav-2a" href="/wiki/Special:AdminDashboard">Admin CP</a></li>'); //});