MOOMOO.io BASIC HAT MACRO

Use this mod to switch hats with the press of a key!

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         MOOMOO.io BASIC HAT MACRO
// @namespace    http://tampermonkey.net/
// @version      0.9
// @description  Use this mod to switch hats with the press of a key!
// @author       Cody Webb
// @match                 *://moomoo.io/*
// @match                 *://sandbox.moomoo.io/*
// @match                 *://dev.moomoo.io/*
// @grant        none
// ==/UserScript==

(function() {
    
    
    //the actuall equip script
    if (document.activeElement.id !== 'chatBox'){
        document.addEventListener('keydown', function(e) {
            switch (e.keyCode) {
                case 16: storeEquip(0); break; // Shift
                case 82: storeEquip(7); break; // R
                case 90: storeEquip(40); break; // Z
                case 71: storeEquip(6); break; // G
                case 66: storeEquip(12); break; // B
                case 89: storeEquip(58); break; // Y
                case 78: storeEquip(15); break; // N
                case 74: storeEquip(22); break; // J
                case 84: storeEquip(53); break; // T
                case 88: storeEquip(16); break; // K
                case 72: storeEquip(26); break; // H
                case 85: storeEquip(20); break; // U
                case 73: storeEquip(56); break; // I
                case 79: storeEquip(55); break; // O
                case 77: storeEquip(11); break; // M

        }
    });

}})();