User:Mr Creeper500/chat.js

/*Imports*/ importArticles({   type: 'script',    articles: [        'u:runescape:User:Joeytje50/tabinsert.js',        'u:dev:AjaxEmoticons/code.js',        'u:dev:ChatTags/code.js',        'u:dev:ChatOptions/code.js',        'u:runescape:User:Joeytje50/tabinsert.js',        'u:kocka:MediaWiki:Emoticons.js',        "u:dev:MediaWiki:PrivateMessageAlert/code.js",        'u:dev:ChatSendButton.js'    ] });

/*Responses*/ $('[name="message"]').keypress(function (e) {   if (e.which == 32 || e.which == 13) {        switch (this.value) { /*Idk if people even ask this but it's here so yeah.*/                    case '/changeusername':            this.value = 'You can request to change your username via Special:Contact/rename-account.';            break;        case '/emotes':            this.value = 'The full list of emoticons here can be found at MediaWiki:Emoticons.';            break; /*This happens so much I actually need a shortcut lol*/                    case '/tou':            this.value = 'Can\'t ask that! Read ToU dude.';            break;        }    } });