User:Prince(ss) Platinum/ChatRegex.js

$('[name="message"]').keypress(function(e) {   if (e.which == 32 || e.which == 13) {        switch (this.value) {            case 'S:C': this.value = 'Special:Contact'; break;            case 'S:C/B': this.value = 'Special:Contact/bug'; break;            case 'S:C/R': this.value = 'Special:Contact/rename-account'; break;            case 'S:C/G': this.value = 'Special:Contact/general'; break;            case 'R:V': this.value = 'Report vandalism'; break;            case 'R:S': this.value = 'Report spam'; break;            case 'R:W': this.value = 'Report wiki'; break;        }    } });