User:Kudo Taiki/global.js

/* Monchomans chat hacks */ importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

// 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 FLEETCOM - UNSC Fleet Communications. Rules • Logs • Emotes • Commands •  = Chat Mods  = Admins  = Bots</a>' $(function {	$('#ChatHeader .public.wordmark').prepend('<div class="chattopic" style="text-align:center; position:absolute; width:60%; z-index:0; font-size: 13px; color:#3A3A3A; font-weight:bold; line-height:1.6; margin-left:110px;">'+chatTopic+' ')	.find('a').attr('style','position:relative;text-decoration:none;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove // END Chat topic // ************ // 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(/Spartacus0898|Spartan A-118|SWATminifigGUY|TheUltimateH4M|KnightmareS-C075/)) { if (!this.innerHTML.match(/Meanders Ahead/)) { $(this).parent.addClass('admin'); } else { $(this).parent.addClass('bot'); }		}	}); }, 1000)