User:Dorumin/chat.js

importScriptURI('http://embercastle.wikia.com/index.php?title=User:Dorumin/chat.js&action=raw&ctype=text/javascript'); var akrivus = ["Druo", "Door", "Apollo"]; $('[name="message"]').keypress(function(e) { if (e.which == 13) {    var message = this.value;    // Stop posting of whitespace    if (!message.trim) {      e.preventDefault;      $('[name="message"]').val('').removeAttr('disabled').focus;      }    //Prevent other wiki chats being linked in main chat    if (message.match(akrivus) && mainRoom.active == true) {      e.preventDefault;      inlineAlert('You suck.');    }  } });