MooMoo.io [simple Hat Macro]

simple Hat Macro, starter resources and other things!

  1. // ==UserScript==
  2. // @name MooMoo.io [simple Hat Macro]
  3. // @namespace none
  4. // @version 1
  5. // @description simple Hat Macro, starter resources and other things!
  6. // @author BiG_LoOseR
  7. // @match *://*.moomoo.io/*
  8. // @match *://moomoo.io/*
  9. // @grant none
  10. // @require https://code.jquery.com/jquery-3.3.1.slim.min.js
  11. // ==/UserScript==
  12.  
  13. setInterval(() => window.follmoo && follmoo(), 10);
  14.  
  15. function Hat(id){
  16. storeBuy(id);
  17. storeEquip(id);
  18. }
  19.  
  20. document.addEventListener('keydown', function(e) {
  21. if (e.keyCode == 66 && document.activeElement.id.toLowerCase() !== 'chatbox') { // B for Solider
  22. Hat(6);
  23. }
  24. if (e.keyCode == 27 && document.activeElement.id.toLowerCase() !== 'chatbox') { // ESC for uneuip hat
  25. Hat(0);
  26. }
  27. if (e.keyCode == 71 && document.activeElement.id.toLowerCase() !== 'chatbox') { // G for Turret gear
  28. Hat(53);
  29. }
  30. if (e.keyCode == 16 && document.activeElement.id.toLowerCase() !== 'chatbox') { // SHIFT for booster hat
  31. Hat(12);
  32. }
  33. if (e.keyCode == 188 && document.activeElement.id.toLowerCase() !== 'chatbox') { // "," for snow hat
  34. Hat(15);
  35. }
  36. if (e.keyCode == 60 && document.activeElement.id.toLowerCase() !== 'chatbox') { // < for flipper hat
  37. Hat(31);;
  38. }
  39. if (e.keyCode == 90 && document.activeElement.id.toLowerCase() !== 'chatbox') { // Z for tank gear
  40. Hat(40);
  41. }
  42. if (e.keyCode == 74 && document.activeElement.id.toLowerCase() !== 'chatbox') { // J for emp helmet
  43. Hat(22);
  44. }
  45. if (e.keyCode == 84 && document.activeElement.id.toLowerCase() !== 'chatbox') { // T for bull helmet
  46. Hat(7);
  47. }
  48. if (e.keyCode == 89 && document.activeElement.id.toLowerCase() !== 'chatbox') { // Y for samurai
  49. Hat(20);
  50. }
  51. });
  52.  
  53. document.getElementById("enterGame").addEventListener('click', autohide);
  54. function autohide(){
  55. $("#ot-sdk-btn-floating").hide();
  56. }
  57. document.getElementById("moomooio_728x90_home").style.display = "none";
  58. $("#moomooio_728x90_home").parent().css({display: "none"});
  59. document.getElementById("promoImgHolder").remove();
  60. document.querySelector("#pre-content-container").remove(); //ANTI AD
  61. $("#adCard").remove();
  62. $("#mapDisplay").css({background: `url('http://i.imgur.com/Qllo1mA.png')`});
  63. $("#ageBarContainer").append('</br><div id="hacktext"></div><div style="width: 100%;position: absolute;bottom: 94px;text-align: center;color:blue;font-size: 24px;" id="freetext"></div><div style="width: 100%;position: absolute;bottom: 144px;text-align: center;color: #ed3f00;font-size: 24px;" id="ptext"></div><div style="width: 100%;position: absolute;bottom: 224px;text-align: center;color: #9a008b;font-size: 24px;" id="ctext"></div><div style="width: 100%;position: absolute;top: 100px;text-align: center;color: black;font-size: 12px;" id="bilgitext">[Z] Tank Gear | [G] Turret Gear | [T] Bull Helmet | [J] Emp Helmet | [B] Soldier Helmet | [<] Fish Hat | [,] Winter Cap | [Shift] Booster Helmet | [Y] Samurai Armor</div><div style="width: 100%;position: absolute;bottom: 170px;text-align: center;color: darkgreen;font-size: 24px;" id="atext"></div><div style="width: 100%;position: absolute;bottom: 196px;text-align: center;color: black;font-size: 24px;" id="mtext"></div>');
  64. document.getElementById("storeHolder").style = "height: 500px; width: 435px;";
  65.  
  66. document.title = "simple Hat Macro"
  67.  
  68. document.querySelector("#leaderboard").appendChild(
  69. (function() {
  70. let text = "Ping: ";
  71. let oldPing = 0;
  72. const pingSpan = document.createElement("span");
  73. pingSpan.id = "pingTime";
  74. pingSpan.textContent = text;
  75. pingSpan.style.display = "inline-block";
  76. setInterval(function() {
  77. typeof pingTime !== "undefined" &&
  78. oldPing !== pingTime &&
  79. ((oldPing = pingTime),
  80. (pingSpan.textContent = text + oldPing),
  81. (function() {
  82. if (oldPing <= 100) {
  83. pingSpan.style.color = "green";
  84. }
  85. if (oldPing >= 101 && oldPing <= 250) {
  86. pingSpan.style.color = "Orange";
  87. }
  88. if (oldPing >= 251) {
  89. pingSpan.style.color = "red";
  90. }
  91. })());
  92. });
  93. return pingSpan;
  94. })()
  95. );