MediaWiki:Chat.js

// Credit to Runescape Wiki

//Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking. var chatTopic = 'Welcome to COMMS - USSR Naval Fleet Communications. All personnel should revise standardized  protocol  while utilising the system. ' $(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

// Clear chat button

function addClearChatText{ if ($('.clearChatText').length <= 0) { $('Clear chat ').prependTo('.chattopic'); } } function clearChat{ $('.Chat li').remove } window.onload=addClearChatText

// END Clear chat button

// ************ // Chat options import // ************ // Written by Sactage, Callofduty4 and Madnessfan34537 var chatOptionsLoaded; if (chatOptionsLoaded != 1){ chatOptionsLoaded = 1; importScriptPage('MediaWiki:Chat.js/options.js','cod'); } // **************** // END Chat options import // ****************

/*Mark admins*/ // Written by administrators of the Runescape wiki, who also kindly gave permission for use. setInterval(function {	$('#Rail .User.chat-mod:not(.admin) .username').each(function { if (!this.innerHTML.match((/Pvt.Ed|Лорд-Эдвард-Гром-брюки|Gboyers|Cypher3/)) {			$(this).parent.addClass('admin');		}	}); }, 1000)