User:-Matt/global.js

importScriptPage('AjaxRC/code.js', 'dev');

function addHotbarLink(a, b, c, d) { var e = (c === true || d === true) /**/ ? /**/ a /**/ : /**/ '/wiki/' + encodeURIComponent(a).replace('%2F', '/'); var q = typeof c == 'string' /**/ ? /**/ '?' + c /**/ : /**/ (typeof d == 'string' /**/ ? /**/ '?' + d /**/ : /**/ ''); var f = typeof disableButtons != 'undefined' /**/ ? /**/ (disableButtons /**/ ? /**/ b /**/ : /**/ ' ' + b + ' ') /**/ : /**/ ' ' + b + ' '; $('.toolbar .tools').append('' + f + ''); }

function emptyHotbar { $('.toolbar .tools').empty; }

$(document).ready(function {

if (skin == 'oasis') {

$('#WikiaFooter section').remove; $('.CorporateFooter').remove; $('.share-button').remove;

if (wgDBname != 'runescape') { if (wgDBname == 'wikicities') { $('#WikiaHeader > nav ul').remove; } else { $('#WikiaFooter .toolbar').remove; } }

}

});

// Turns the username in user menus and above messages in Chat into a link to their userpage if (wgCanonicalSpecialPageName == 'Chat') { setInterval(function {       $('.Chat > ul > li:not(.continued):not(.inline-alert) .username, .UserStatsMenu .username').each(function { if ( !this.getElementsByTagName('a').length ) { var anchor = document.createElement('a'); anchor.href = '/wiki/User:' + encodeURIComponent(this.innerHTML); anchor.appendChild(this.firstChild); this.appendChild(anchor); }       });    }, 1000); }