MooMoo.io - Resolution Changer

Boost your FPS by adjusting the canvas resolution. You can tweak this setting in the desktop menu.

  1. // ==UserScript==
  2. // @name MooMoo.io - Resolution Changer
  3. // @author Kooky Warrior
  4. // @description Boost your FPS by adjusting the canvas resolution. You can tweak this setting in the desktop menu.
  5. // @version 1
  6. // @match *://*.moomoo.io/*
  7. // @namespace https://gf.qytechs.cn/users/999838
  8. // @icon https://cdn.glitch.com/82ae8945-dcc6-4276-98a9-665381b4cd2b/cursor12.png
  9. // @run-at document-start
  10. // @grant unsafeWindow
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. ;(() => {
  15. unsafeWindow.changeResolution = true;
  16.  
  17. const checkTrustedSymbol = Symbol("checkTrusted");
  18. Object.defineProperty(Object.prototype, "checkTrusted", {
  19. get() {
  20. return this[checkTrustedSymbol];
  21. },
  22. set() {
  23. delete Object.prototype.checkTrusted;
  24. this.checkTrusted = (e) => e;
  25. },
  26. configurable: true,
  27. });
  28.  
  29. var resolutionValue = localStorage.getItem("resolutionValue");
  30. if (resolutionValue == null) {
  31. resolutionValue = 0.9;
  32. localStorage.setItem("resolutionValue", resolutionValue);
  33. }
  34.  
  35. unsafeWindow.addEventListener("DOMContentLoaded", () => {
  36. const parent = document.getElementsByClassName("settingRadio")[0];
  37. parent.childNodes[1].textContent = " Change Resolution";
  38. unsafeWindow.devicePixelRatio = resolutionValue;
  39. document.getElementById("nativeResolution").dispatchEvent(
  40. new Event("change")
  41. );
  42.  
  43. const container = document.createElement("div");
  44. container.className = "settingRadio";
  45. const numInput = document.createElement("input");
  46. numInput.type = "number";
  47. numInput.step = "0.1";
  48. numInput.min = "0.1";
  49. numInput.max = "3";
  50. numInput.value = resolutionValue;
  51. numInput.addEventListener("change", (event) => {
  52. if (event.target.value < event.target.min) {
  53. event.target.value = event.target.min;
  54. } else if (event.target.value > event.target.max) {
  55. event.target.value = event.target.max;
  56. } else if (event.target.value == null) {
  57. event.target.value = 0.9;
  58. }
  59. resolutionValue = unsafeWindow.devicePixelRatio = event.target.value;
  60. localStorage.setItem("resolutionValue", resolutionValue);
  61. document.getElementById("nativeResolution").dispatchEvent(
  62. new Event("change")
  63. );
  64. });
  65.  
  66. numInput.style.borderRadius = "8px";
  67. numInput.style.backgroundColor = "#333";
  68. numInput.style.color = "#e5e3e4";
  69.  
  70. container.appendChild(numInput);
  71. parent.parentNode.insertBefore(container, parent.nextSibling);
  72. });
  73. })();

QingJ © 2025

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