User:ReaperxRoll/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); // 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 . Take part in discussion concerning the chat 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){ if ($('.User.chat-mod .username').hasClass("modday")){ $(".User.chat-mod .username").removeClass("modday"); $(".User.chat-mod .username").addClass("modnight"); }else{ $(".User.chat-mod .username").addClass("modnight"); } }else{ if ($('.User.chat-mod .username').hasClass("modnight")){ $(".User.chat-mod .username").removeClass("modnight"); $(".User.chat-mod .username").addClass("modday"); }else{ $(".User.chat-mod .username").addClass("modday"); } } $('.User.chat-mod[data-user="Foodbandlt"] .username').removeClass('modday').removeClass('modnight'); $('.User.chat-mod[data-user="MysteriousForce"] .username').removeClass('modday').removeClass('modnight').addClass("Force"); setTimeout("nighttime_moon", 10*60*1000); }

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