User:RuthlessChimpanzee/global.js

/* APIQuery, B3, wham, chat hacks, other import crap */ importScriptPage('MediaWiki:APIQuery.js', 'monchbox'); importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:B3.js&action=raw&ctype=text/javascript&templates=expand&t=' + (new Date).getTime); importScriptURI('http://monchbox.wikia.com/index.php?title=MediaWiki:Torus.js/dev.js&action=raw&ctype=text/javascript&templates=expand&t=' + (new Date).getTime); importScriptPage('MediaWiki:WhamAPI.js', 'monchbox'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); if(!localStorage.getItem('globalJS') || localStorage.getItem('globalJS') == 'true') {importScriptPage('AjaxRC/code.js', 'dev');}

/* redo links on user nav to be more useful */ function RedefineUserNav { $('.AccountNavigation .subnav li:first-child').replaceWith('TalkContributions'); $('.AccountNavigation .subnav li a[href="/wiki/Special:Preferences"]').replaceWith('Preferences'); $('.AccountNavigation .subnav li a[href="/wiki/Special:Following"]').replaceWith('Sandbox'); $('.AccountNavigation .subnav li a[href="/wiki/Help:Contents"]').replaceWith('<a href="http://community.wikia.com/wiki/Forum:Index">Central Forum</a></li><a href="http://community.wikia.com/wiki/User:'+ wgUserName +'/global.js">global.js</a></li><a href="http://community.wikia.com/wiki/User:'+ wgUserName +'/global.css">global.css</a></li>'); $('.AccountNavigation .subnav').css({'width': "133px"}); } if((!localStorage.getItem('globalJS') || localStorage.getItem('globalJS') == 'true') && skin == 'oasis') {addOnloadHook(RedefineUserNav);}