User:Prince(ss) Platinum/chat.js

$('[name="message"]').keypress(function (e) {   if (e.which == 13) {        var test = "/lmgtfy";        if (this.value.indexOf(test) > -1 && this.value.indexOf(test) < 8) {            var query = this.value.replace('/lmgtfy ', '');            var query = query.replace(/ /g, "+");            this.value = "http://www.lmgtfy.com/?q=" + query        }    } });