MooMoo.js anticheat calculator

Sort of calculating kick level

目前为 2023-01-31 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name MooMoo.js anticheat calculator
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.51
  5. // @description Sort of calculating kick level
  6. // @require https://gf.qytechs.cn/scripts/456235-moomoo-js/code/MooMoojs.js
  7. // @author Lovou#4725
  8. // @match *://*.moomoo.io/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. const MooMoo = (function MooMooJS_beta() {})[69]
  13.  
  14. let kickCount = 0;
  15. let intervalStarted = false;
  16. const resetInterval = 60000; // 1 minute in milliseconds
  17. let resetTime = Date.now() + resetInterval;
  18.  
  19. const resetKickCount = () => {
  20. kickCount = 0;
  21. resetTime = Date.now() + resetInterval;
  22. };
  23.  
  24. MooMoo.addEventListener("packet", () => {
  25. if (!intervalStarted) {
  26. intervalStarted = true;
  27. setInterval(() => {
  28. const currentTime = Date.now();
  29. if (currentTime >= resetTime) {
  30. resetKickCount();
  31. }
  32. }, 100);
  33. }
  34. });
  35.  
  36. const incrementKickCount = () => {
  37. kickCount++;
  38. };
  39.  
  40. const calculateKickPercentage = (kicks, goal) => (kicks / goal) * 100;
  41.  
  42. const setStyles = element => {
  43. const styles = {
  44. position: "absolute",
  45. top: "0px",
  46. left: "0px",
  47. color: "white",
  48. fontFamily: "monospace",
  49. fontSize: "25px"
  50. };
  51.  
  52. Object.entries(styles).forEach(([key, value]) => {
  53. element.style[key] = value;
  54. });
  55. };
  56.  
  57. const displayGameInfo = () => {
  58. const gameInfoElement = document.createElement("div");
  59. setStyles(gameInfoElement);
  60. gameInfoElement.id = "playerPosition";
  61.  
  62. document.body.appendChild(gameInfoElement);
  63.  
  64. const updateGameInfo = () => {
  65. const currentTime = Date.now();
  66. const timeRemaining = resetTime - currentTime;
  67. document.getElementById("playerPosition").innerText = `[Kick (%): ${Math.round(
  68. calculateKickPercentage(kickCount, 5400)
  69. )}/100]\n [Reset: ${(timeRemaining / 1000).toFixed(1)} | PPM: ${kickCount}]`;
  70. };
  71.  
  72. setInterval(updateGameInfo, 100);
  73. };
  74.  
  75. MooMoo.onClientPacket = incrementKickCount;
  76. MooMoo.onGameLoad = displayGameInfo;

QingJ © 2025

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