User:MACH-59330/chat.js

// chat imports importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:ChatOptions/code.js',        'u:kocka:MediaWiki:Emoticons/code.js',        'u:dev:Colors/code.js'    ] }); // chat options button adjustment chatopbtn = setInterval(function {	if ($('#chatOptionsButton').length) {       $('#chatOptionsButton').remove;        var newopbtn = mw.html.element('div', { id: 'chatOptionsButton', onclick: 'openOptions;' }),       opbtnimg = mw.html.element('img', { src: 'http:\/\/slot1.images.wikia.nocookie.net\/__cb1471285335\/common\/resources\/lib\/oojs-ui\/themes\/apex\/images\/icons\/advanced.svg', width: '18px' });       mw.util.addCSS( '#chatOptionsButton {' + 'position: absolute;' + 'right: 151px;' + 'z-index: 3;' + 'padding: 3px;' + '}'       );        $('#ChatHeader').prepend(newopbtn);		$('#chatOptionsButton').append(opbtnimg);        clearInterval(chatopbtn);    } }, 150); pingbtn = setInterval(function {	if ($('#pingspan').length) {       $('#pingspan div').addClass('wikia-menu-button');        clearInterval(pingbtn);    } }, 150); // mobile chatskin meta tag $('head').append(mw.html.element('meta', { name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' })); // ping highlight recolor var pingclr = dev.colors.parse(dev.colors.wikia.link), pingbg = pingclr.mix(dev.colors.wikia.page,0.95); mw.util.addCSS('.ChatWindow .Chat .ping {' +   'color:' + pingclr + ';' +    'background: ' + pingbg + ';' + '}');