brilvio / Kami's Automation

// ==UserScript==
// @name         Kami's Automation
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Automate Kami's emotes
// @author       Fernando Derkoski de Souza (brilvio)
// @match        https://www.twitch.tv/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.addEventListener('load', function() {
        setTimeout(function() {  
            var el = document.getElementsByClassName('chat_text_input')[0];
            el.addEventListener("input", function(){
                if (el.value == '!kamiult') {
                    el.value = 'kamiDERP KAMIULT kamiDERP'; 
                } else if (el.value == '!sh') {
                    el.value = 'kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY  kamiLOVE  kamiHYPE  kamiBOOTY';
                }
            });
        },5000);
    }, false);    
})();