Greasy Fork镜像 支持简体中文。

Moomoo.io - Ez Hat Switch

Give yourself an advantage over the other players

  1. // ==UserScript==
  2. // @name Moomoo.io - Ez Hat Switch
  3. // @version 0.1
  4. // @description Give yourself an advantage over the other players
  5. // @author IceHacks
  6. // @match *://moomoo.io/*
  7. // @grant none
  8. // @
  9. // @namespace https://gf.qytechs.cn/users/172812
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. // Replace the values with your hats, or leave them be.
  15. var _hats = {
  16. "96": undefined, // Numpad 0; Hat 0/Nothing
  17. "97": 7, // Numpad 1; Hat 7/Bull
  18. "98": 6, // Numpad 2; Hat 6/Soldier
  19. "99": 20, // Numpad 3; Hat 20/Samurai
  20. "100": 31, // Numpad 4; Hat 31/Fish
  21. "101": 10, // Numpad 5; Hat 10/Bush
  22. "102": 11, // Numpad 6; Hat 11/Spike
  23. "103": 22, // Numpad 7; Hat 22/Emp
  24. "104": 12, // Numpad 8; Hat 12/Speed
  25. "105": 9 // Numpad 9; Hat 9/Miner
  26. };
  27. var hats = Object.keys(_hats);
  28.  
  29. document.onkeydown = function (e) {
  30. // Does storeEquip exist?
  31. if (typeof storeEquip === "function") {
  32. // Yes, it does.
  33. var len = hats.length;
  34. var k = e.keyCode;
  35. // Check to see if that Key turns on a Hat
  36. if (_hats[k]) {
  37. // That key is a Hat Key!
  38. storeBuy(_hats[k]); // Buy the hat
  39. storeEquip(_hats[k]); // Equip the hat
  40. }
  41. }
  42. }
  43. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址