ATTENTION: This wiki has been fully discontinued. The Animal Crossing Wiki, formerly hosted on Miraheze, has relocated to animalcrossing.indyamos.com as an enhanced version of this project. Certain pages may be imported from here, but stubs cannot be imported. No pages can be edited except by sysops. For additional information, please view Special:Diff/57616.

MediaWiki:Chat.js

From Animal Crossing Wiki
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.

// Credit to Runescape and Call of Duty Wiki
 
 
// 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();
/* Creating /me command */
document.getElementsByName('message')[0].onkeypress = function(e) {
	if (e.which == 32) {
		if (this.value == '/me') {
			this.value = '* '+wgUserName;
		}
	}
}
/* Tab Insert */
importScript('User:Joeytje50/tabinsert.js')
 
/* Rate Limit */
importScript('User:Joeytje50/ratelimit.js')
 
/*Adding Quick Chat thing per discussion in Chat*/
importScript('User:Joeytje50/qc.js')