Board Thread:Support Requests - Getting Technical/@comment-1084762-20160128212956/@comment-1084762-20160130152440

SuperSajuuk wrote: Your MediaWiki:Chat.js file is an absolute mess of code. You are importing the same thing multiple times for no apparent reason. Replace the contents of your MediaWiki:Chat.js with this: // Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking. // Credit to the Runescape Wiki. var chatTopic = '  Chat Policy  ⊙  Chat Warnings  ⊙  Emoticons  ⊙  Wiki Staff  ' $(function {	$('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ')	.find('a').attr('style','position:relative;text-decoration:underline;') } $('#ChatHeader .public.wordmark div:not(:first-child)').remove // END Chat Topic /*Allow Chat Mods and admins to kick users using /kick */ // Credit to the Runescape Wiki. if (wgUserGroups.indexOf('chatmoderator')!=-1 || wgUserGroups.indexOf('sysop')!=-1) {	createAlias('kick', 13, function(toKick,e) { if ($('#WikiChatList [data-user="'+toKick+'"]').length) { mainRoom.kick({name: toKick}) } else { if (confirm(toKick + ' is not in this chat. Still try to kick him?')) mainRoom.kick({name: toKick}); }		e.target.value = ''; }); } if (wgUserGroups.indexOf('sysop')!=-1) {	createAlias('ban', 13, function(toBan,e) { if (confirm('Are you really sure you want to block '+toBan+' permanently from the wiki, and kick them from this chat? Note: seperate the username and the block reason with a comma.')) { toBan = toBan.split(','); reason = toBan.slice(1).join(' '); $.post('runescape.wikia.com/api.php?action=block&user='+toBan[0]+'&expiry=infinite&nocreate=true&noemail=true&reason='+encodeURIComponent(reason)) mainRoom.kick({name: toBan[0]}) }	}) } // END Kick/Ban

// ChatOptions importScriptPage('MediaWiki:ChatOptions/code.js', 'dev'); Your code may then actually work like it should. And as you can see, Chat.js is subject to JS Review, so you may need to wait a few days before anything shows up. that's what it just was. that's what the active revision currently is, actually. it was approved just last night.

I added things onto the code as a test since the code you've just pasted doesn't work.