MediaWiki:Chat.js

// Credit to Runescape and Call of Duty Wiki

//Chat's topic. Remember to escape single quotes in the topic using \' to prevent this from breaking.

var chatTopic = 'Welcome to the Friendship is Magic Wiki Chat! Please make sure to read the rules and other information  here .' $(function {	$('#ChatHeader .public.wordmark').prepend(''+chatTopic+' ')	.find('a').attr('style','position:relative;text-decoration:underline;') }) $('#ChatHeader .public.wordmark div:not(:first-child)').remove

// Change mod icons depending on the time // Written by Foodbandlt

function nighttime_moon{ var night = new Date; var nighthour=night.getHours;

if (nighthour >= 19 || nighthour <= 7){ $(".chat-mod .username").removeClass("modday"); $(".chat-mod .username").addClass("modnight"); }else{ $(".chat-mod .username").removeClass("modnight"); $(".chat-mod .username").addClass("modday"); } setTimeout("nighttime_moon", 10*60*1000); }

nighttime_moon;