MediaWiki:Chat.js

var chatTopic = 'Welcome.... Home '; $(function {	$('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ')	.find('a').attr('style','position:relative;text-decoration:underline;'); }); // Import Chat features importArticles({   type    : "script",    articles: [        "u:dev:ChatOptions/code.js",        "u:dev:!mods/code.js"    ] }); importScriptPage('SpeedEmoticon/latest.js', 'korniux'); importScriptPage('ChatCount/code', 'korniux'); importScriptPage('MediaWiki:ChatAnnouncements/code.js','dev'); chatAnnouncementsAll = true; importScriptPage('MediaWiki:ChatTags/code.js', 'shining-armor'); var chatags = { images: true, videos: true }; mw.loader.using('jquery.ui.autocomplete', function {   $(function { var availableTags = [ '[b][/b]', '[bg=""][/bg]', '[big][/big]', '[c=""][/c]', '[code][/code]', '[font=""][/font]', '[i][/i]', '[img=""]', '[small][/small]', '[s][/s]', '[sub][/sub]', '[sup][/sup]', '[u][/u]', '[yt=""]' ];       $('textarea[name=message]').autocomplete({            source: availableTags,            position: { my: "left bottom", at: "left top", collision: "none" }        }); mw.util.addCSS('.ui-autocomplete{border:1px solid #000;background:#000;width:150px!important}.ui-menu-item{background:#3a3a3a;border-bottom:2px solid #000}.ui-menu-item a{font-family:monospace;color:#FFA500!important}'); }); });