FPS Booster [Sploop.io, Moomoo.io and other] (if you want me to add sites, dm me)

Improve MooMoo.io FPS performance.(if you want me to add sites, dm me)

// ==UserScript==
// @name         FPS Booster [Sploop.io, Moomoo.io and other] (if you want me to add sites, dm me)
// @namespace    https://greasyfork.org/en/users/1064285-vcrazy-gaming
// @version      1.0
// @description  Improve MooMoo.io FPS performance.(if you want me to add sites, dm me)
// @author       _VcrazY_
// @match        *://*.moomoo.io/*
// @match        *://*.sploop.io/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  'use strict';

  let animationFrameId;
const startAnimationFrame = (previousTimestamp = performance.now(), remainingFrameTime = 0) => {
  let timeElapsedSinceLastFrame = performance.now() - previousTimestamp,
    targetFrameInterval = 16.67 - timeElapsedSinceLastFrame + remainingFrameTime,
    frameDelay = targetFrameInterval - (0 | targetFrameInterval);
  animationFrameId = requestAnimationFrame(() => startAnimationFrame(previousTimestamp, frameDelay));
};
startAnimationFrame();
  window.addEventListener("beforeunload", () => {
    animationFrameId && cancelAnimationFrame(animationFrameId);
  });

})();