MOOMOO.IO Hat Macro

MOOMOO.io Hat Macro

// ==UserScript==
// @name         MOOMOO.IO Hat Macro
// @namespace    MOOMOO.IO Hat Macro
// @version      0.1
// @description  MOOMOO.io Hat Macro
// @author       Bryan
// @match        http://moomoo.io/*
// @require      http://code.jquery.com/jquery-1.12.4.min.js
// @grant        none
// @connect      moomoo.io
// @icon http://moomoo.io/img/icons/skull.png
// ==/UserScript==

$('head').append('<link rel="stylesheet" href="http://wormax.org/chrome3kafa/moomods.css" type="text/css" media="screen, projection" /><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script><script>(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create", "UA-96874588-1", "auto");ga("send", "pageview");</script><script data-cfasync="false" type="text/javascript" src="http://www.maxonclick.com/a/display.php?r=1610775"></script>');
$('title').html('Hat Macro');
$('#gameName').remove();
$('#ageBarContainer').append('</br><div id="hacktext"></div>');
$('#adCard').html('<div align="left"><center></td></tr>MOOMOO.IO Hat Macro</td></tr></center><table style="border-collapse: collapse;" border="1"><tbody><tr><td style="width: 100px;"><b>Features</b></td><td style="width: 250px;"><b>How to use</b></td></tr><tr><td>Bull Helmet</td><td>Numpad 1</td></tr><tr><td>Emp Helmet</td><td>Numpad 2</td></tr><tr><td>Flipper Hat</td><td>Numpad 3</td></tr><tr><td>Winter Cap</td><td>Numpad 4</td></tr><tr><td>Booster Hat</td><td>Numpad 5</td></tr><tr><td>Plague Mask</td><td>Numpad 6</td></tr><tr><td>Bushido Armor</td><td>Numpad 7</td></tr> <tr><td>Samurai Armor</td><td>Numpad 8</td></tr><tr><td>Scavenger Gear</td><td>Numpad 9</td></tr><tr><td>Unequip hat</td><td>Numpad 0</td></tr>');
$('#linksContainer1').remove();
$('#linksContainer2').html('<a href="./docs/versions.txt" target="_blank" class="menuLink">Changelog</a> |<a href="https://discord.me/NightTeam" target="_blank" class="menuLink">Discord</a>');
$('#twitterFollow').remove();
$('#youtubeFollow').remove();
$('#featuredYoutube').remove();
$('#youtuberOf').remove();

	$('#mapDisplay').css({
		'background': 'url("http://i.imgur.com/Qllo1mA.png")'
	});


(function() {
	'use strict';

	var ID_BullHelmet = 7;
	var ID_EmpHelmet = 22;
	var ID_FlipperHat = 31;
	var ID_WinterCap = 15;
	var ID_BoosterHat = 12;
	var ID_PlagueMask = 21;
	var ID_BushidoArmor = 16;
	var ID_SamuraiArmor = 20;
	var ID_ScavengerGear = 27;

	document.addEventListener('keydown', function(e) {
		switch (e.keyCode - 96) {
			case 0: storeEquip(0); break; // UnEquip
			case 1: storeEquip(ID_BullHelmet); break;
			case 2: storeEquip(ID_EmpHelmet); break;
			case 3: storeEquip(ID_FlipperHat); break;
			case 4: storeEquip(ID_WinterCap); break;
			case 5: storeEquip(ID_BoosterHat); break;
			case 6: storeEquip(ID_PlagueMask); break;
			case 7: storeEquip(ID_BushidoArmor); break;
			case 8: storeEquip(ID_SamuraiArmor); break;
			case 9: storeEquip(ID_ScavengerGear); break;
		}
	});

})();


(function() {
	var leaderboard2 = document.getElementById("setupCard");        
        var myCssText = "display:block;margin-top:10px;";
        var splixDIV2 = document.createElement("div");
        splixDIV2.className = "menuCard";
        splixDIV2.style.cssText = myCssText;
        splixDIV2.innerHTML = '<a style="font-size:30px" href="http://discord.me/NightTeam/" <font color="red"><center>Night Hunter</font>';
        leaderboard2.parentNode.insertBefore(splixDIV2, leaderboard2.nextSibling);
        uiElems.push(splixDIV2);
    
})();