User:Octopus Wizard/chat.js

function ChatReplacement(first, last) { $('[name="message"]').keydown(function(e) {      R = new RegExp(first,"gm");            $(this).unbind('keypress').val($(this).unbind('keypress').val.replace(R, last));    }); } $(function {   ChatReplacement("oh", "omg");    ChatReplacement("whoa", "omg");    ChatReplacement("wow", "omg");    ChatReplacement("Hi", "hey");    ChatReplacement("What?", "what");    ChatReplacement("fucking", "fucken");    ChatReplacement("appropriate", "", "appropet");    ChatReplacement("inappropriate", "innerpropet");    ChatReplacement("still", "stell");    ChatReplacement("feel", "fell");    ChatReplacement("you", "u");    ChatReplacement("brother", "bruh");    ChatReplacement("friend", "frieand");    ChatReplacement("thanks", "thnx");    ChatReplacement("yeah", "yeh");    ChatReplacement("bureaucrat", "budcrate");    ChatReplacement("Endercat", "endcat");    ChatReplacement("Messenger", "messanger");    ChatReplacement("Wikipedia", "Winkpedia");    ChatReplacement("lying", "laying");    ChatReplacement("dying", "daying");        ChatReplacement("brick", "WallBud aka Katy Perry Fan aka OneFootOutTheGrave aka Donald Trump's secret weapon"); });