User:BoredandProud/chat.js

$('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "bluetext"; {            var query = this.value.replace('bluetext','[c="blue"]');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "redtext"; {            var query = this.value.replace('redtext','[c="red"]');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "purpletext"; {            var query = this.value.replace('purpletext','[c="purple"]');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "yellowtext"; {            var query = this.value.replace('yellowtext','[c="yellow"]');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "greentext"; {            var query = this.value.replace('greentext','[c="green"]');            this.value = query;        }    } }); $('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "bluetext"; {            var query = this.value.replace('bluetext','[c="blue"]');            this.value = query;        }    } });

$('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "redtext"; {            var query = this.value.replace('redtext','[c="red"]');            this.value = query;        }    } });

$('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "purpletext"; {            var query = this.value.replace('purpletext','[c="purple"]');            this.value = query;        }    } });

$('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "yellowtext"; {            var query = this.value.replace('yellowtext','[c="yellow"]');            this.value = query;        }    } });

$('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "greentext"; {            var query = this.value.replace('greentext','[c="green"]');            this.value = query;        }    } });