User:KCCreations/chat.js

var beepSound = 'http://vignette4.wikia.nocookie.net/kccreations/images/d/dd/Is_anyone_there.ogg'; var desktopNotifications = true;

//Thanks cube! $('[name="message"]').keypress(function (e) { if (e.which == 13 && this.value.indexOf("/google") > -1 && this.value.indexOf("/google") < 8)    this.value = "http://google.com/search?q=" + encodeURIComponent(this.value.substring(8)); });

// Script imports window.importArticles( { type: 'script',  articles: [    'u:dev:MediaWiki:ChatOptions/code.js',    'u:dev:MediaWiki:ChatTimestamps/code.js',    "u:dev:MediaWiki:PrivateMessageAlert/code.js"  ] });

//Auto chat night mode thing //http://stackoverflow.com/questions/18031410/javascript-if-time-is-between-7pm-and-7am-do-this /* $(function {  var today = new Date.getHours;  if (today >= 7 && today <= 19) {    return;  } else {    importArticles({ type: "style", articles: [ "u:community:User:KCCreations/Nightmodechat.css" ]   });  } }); */