User:Kangaroopower/global.js

/* B3, Chat Hacks, WhamAPI */ importScriptURI('http://monchbox.wikia.com/wiki/MediaWiki:B3.js?action=raw&ctype=text/javascript'); importScriptURI('http://c.wikia.com/wiki/User:Monchoman45/ChatHacks.js?action=raw&ctype=text/javascript'); importScriptURI('http://monchbox.wikia.com/wiki/MediaWiki:WhamAPI.js?action=raw&ctype=text/javascript');

/* Ajax RC-pcj and Grunny */ ajaxPages = ["Special:RecentChanges","Special:Log","Special:WikiActivity"]; importScriptPage('AjaxRC/code.js', 'dev'); /* Ajax Undo- Grunny */ importScriptPage( 'AjaxUndo/code.js', 'dev' ); /* Wham-Joeyaa */ importScriptPage('User:Joeyaa/wham.js','vstf'); /* Advanced Oasis UI- Porter21 */ var AdvancedOasisUIConfig = { RCHeader: false }; importScriptPage('AdvancedOasisUI/code.js', 'dev'); /* UTC timer, modified by runescape wiki from bulbapedia */ var KPPage = encodeURIComponent(wgPageName); if (wgDB != "runescape"){ var refreshDate; function addDate { var UTCDate = ((new Date).toUTCString).replace("GMT", " "); $('#showdate').empty.append('' + UTCDate.substring(5) + ''); window.clearTimeout(refreshDate); refreshDate = window.setTimeout(addDate, 1000); } $(document).ready(function {       $('#AccountNavigation').prepend(' ');    addDate;    refreshDate = window.setTimeout(addDate, 1000); }); } /* Jquery stuff */ if (skin == 'oasis' || skin == 'wikia') { // Add buttons to toolbar $(function {        $('#WikiaFooter ul.tools').prepend('B3');      // Add Monobook tab to global nav        $('#GlobalNavigation').append('MB');      // Add a Page	$(' Add a Page').insertBefore('.WikiaActivityModule h1.activity-heading');	$('.WikiaActivityModule.module a.wikia-button img.new').css({position:  'relative', top: '0', left: '0'});      }); } /* Custom Edit button */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#REDIRECT ",    "tagClose": "", "sampleText": "Insert text"}; }