User:ToaMeiko-fduser/chat-global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('MediaWiki:Chat.js/options.js','cod');

$(document).ready(function {   $(' | Talk').insertAfter('.ChatWindow .ChatHeader .User .username'); });

var specialPageName = mw.config.get(wgCanonicalSpecialPageName); if (specialPageName == 'Chat') { $(function {       $('[name="message"]').keypress(function(e) { if (e.which == 13) { if (this.value.split(' ')[0] == '/kick') { e.preventDefault; var toKick = this.value.replace(/^\/kick /,'') if (!$('#WikiChatList [data-user="'+toKick+'"]').length) { confirm(toKick + ' is not in this chat. Attempt to kick this username?')?mainRoom.kick({name: toKick}):undefined; } else { mainRoom.kick({name: toKick}) }                        this.value = ''; return true; }               }            });        });    } }