Ragnar / MooMoo.io - Mod

// ==UserScript==
// @name         MooMoo.io - Mod
// @version      5.8
// @author       anonplay
// @description  Map reposition/resize | Hat/Helm/Armor Macros
// @match        http://moomoo.io/*
// @require      http://code.jquery.com/jquery-1.12.4.min.js
// @connect      moomoo.io
// @icon http://appsforlaptop.com/wp-content/uploads/2017/04/net.moomooio.moomooio.png
// ==/UserScript==

// Map Layout
(function() 
{
	'use strict';

	var conf = {
		'map': {
			'w': '200',
			'h': '200',
			'top': '15',
			'left': '15'
		},
	};
    
	// Change Layout
	$('#mapDisplay').css({
        'top': conf.map.top + 'px',	        // default 20px
		'left': conf.map.left + 'px',		// default 20px
		'width': conf.map.w + 'px',			// default 130px
		'height': conf.map.h + 'px'			// default 130px
	});
    
	$('#scoreDisplay').css({
		'bottom': '20px',					// default 20px
		'left': '20px'						// default 170px
	});
})();

//Hats Macro
(function() 
{
	'use strict';

	var ID_BummleHat = 8;
	var ID_StrawHat = 2;
	var ID_WinterCap = 15;
	var ID_CowboyHat = 5;
	var ID_RangerHat = 4;
	var ID_ExplorerHat = 18;
	var ID_MarksmanCap = 1;
	var ID_SoldierHelmet = 6;
	var ID_HoneycrispHat = 13;
	var ID_MinersHelmet = 9;
    var ID_EmpHelmet = 22;
	var ID_BoosterHat = 12;
	var ID_BushGear = 10;
	var ID_SpikeGear = 11;
	var ID_BushidoArmor = 16;
	var ID_SamuraiArmor = 20;
	var ID_DemolisherArmor = 26;

	document.addEventListener('keydown', function(event) 
    {
        if (document.activeElement.id == 'chatBox') 
            return;
        // Numpad 0 to Unequip
        if (event.which === 96) 
        {
            storeEquip(0);
        }
        // [F] Key to Equip
        if (event.which === 70) 
        {
           storeEquip(ID_WinterCap);
        }
        // [G] Key to Equip
        if (event.which === 71) 
        {
           storeEquip(ID_BoosterHat);
        }
        // [H] Key to Equip
        if (event.which === 72) 
        {
           storeEquip(ID_SamuraiArmor);
        }
        // [J] Key to Equip
        if (event.which === 73) 
        {
           storeEquip(ID_DemolisherArmor);
		}
	});
})();