FPS Booster [Sploop.io, Moomoo.io and other]

Improve Sites Performances by Blocking ads, disabling animations, limiting media size and boosting FPS

  1. // ==UserScript==
  2. // @name FPS Booster [Sploop.io, Moomoo.io and other]
  3. // @description Improve Sites Performances by Blocking ads, disabling animations, limiting media size and boosting FPS
  4. // @author _VcrazY_
  5. // @match https://*.discord.com/app
  6. // @match https://*.discord.com/channels/*
  7. // @match https://*.discord.com/login
  8. // @match https://*.discord.com/*
  9. // @match https://facebook.com/*
  10. // @match https://*.facebook.com/*
  11. // @match *://starve.io/*
  12. // @match *://classroom.google.com/*
  13. // @match *://classroom.google.com/*
  14. // @match *://*.io/*
  15. // @match *://sploop.io/*
  16. // @match *://moomoo.io/*
  17. // @match *://sandbox.moomoo.io/*
  18. // @match *://dev.moomoo.io/*
  19. // @match *://*.moomoo.io/*
  20. // @match *://starve.io/*
  21. // @match *://surviv.io/*
  22. // @match *://agar.io/*
  23. // @match *://slither.io/*
  24. // @match *://diep.io/*
  25. // @match *://deeeep.io/*
  26. // @match *://evowars.io/*
  27. // @match *://zombs.io/*
  28. // @match *://paper-io.com/*
  29. // @match *://skribbl.io/*
  30. // @match *://*.github.io/*
  31. // @match *://*.glitch.me/*
  32. // @match *://www.google.com/recaptcha/api2/*
  33. // @match *://www.google.com/*
  34. // @match *://diep.io/*
  35. // @match *://www.baidu.com/*
  36. // @match *://baidu.com/*
  37. // @match *://m.baidu.com/*
  38. // @match *://*.baidu.com/*
  39. // @match *://*.com/*
  40. // @icon https://tinyurl.com/ycxz2v37
  41. // @run-at document-start
  42. // @grant unsafeWindow
  43. // @license MIT
  44. // @version 2.1
  45. // @namespace https://gf.qytechs.cn/en/users/1064285-vcrazy-gaming
  46. // ==/UserScript==
  47.  
  48. (function() {
  49. "use strict";
  50.  
  51. // Apply global style to disable animations and transitions
  52. const style = document.createElement("style");
  53. style.textContent = `
  54. * {
  55. animation: none !important;
  56. transition: none !important;
  57. }
  58. `;
  59. document.documentElement.appendChild(style);
  60.  
  61. // Force lower devicePixelRatio & clear console periodically
  62. const TARGET_PIXEL_RATIO = 0.9;
  63. const CLEAR_INTERVAL_MS = 2 * 60 * 1000; // 2 minutes
  64.  
  65. setInterval(() => {
  66. if (unsafeWindow.devicePixelRatio !== TARGET_PIXEL_RATIO) {
  67. unsafeWindow.devicePixelRatio = TARGET_PIXEL_RATIO;
  68. }
  69. console.clear();
  70. }, CLEAR_INTERVAL_MS);
  71.  
  72. // Helper to run code on DOM ready
  73. function onDOMReady(callback) {
  74. if (document.readyState === "loading") {
  75. document.addEventListener("DOMContentLoaded", callback);
  76. } else {
  77. callback();
  78. }
  79. }
  80.  
  81. // Apply media optimization and ad-blocking
  82. onDOMReady(() => {
  83. // Lazy-load media
  84. document.querySelectorAll("img, video").forEach(media => {
  85. media.loading = "lazy";
  86. });
  87.  
  88. // Limit video size
  89. document.querySelectorAll("video").forEach(video => {
  90. video.addEventListener("loadedmetadata", () => {
  91. if (video.videoHeight > 90) {
  92. video.height = 90;
  93. }
  94. });
  95. });
  96.  
  97. // Limit image dimensions
  98. document.querySelectorAll("img").forEach(img => {
  99. img.onload = () => {
  100. if (img.naturalHeight > 720) {
  101. img.height = 720;
  102. }
  103. if (img.naturalWidth > 1280) {
  104. img.width = 1280;
  105. }
  106. };
  107. });
  108.  
  109. // Ad video blocker
  110. // Thanks to https://gf.qytechs.cn/en/users/983322-lrw
  111. // Original script: https://gf.qytechs.cn/en/scripts/468084-lift-web-restrictions-modified
  112. const blockAdVideos = () => {
  113. const videoElements = document.querySelectorAll("video");
  114. for (let i = 0; i < videoElements.length; i++) {
  115. const videoElement = videoElements[i];
  116. if (videoElement.duration < 10) {
  117. // Assuming ads are usually shorter than 10 seconds
  118. videoElement.pause();
  119. videoElement.src = "";
  120. videoElement.remove();
  121. }
  122. }
  123. };
  124. blockAdVideos();
  125.  
  126. // Remove ad elements, I will add more ads soon...
  127. const adDomains = ["googleads.g.doubleclick.net", "adsbygoogle.js", "pagead2.googlesyndication.com"];
  128. const removeAds = () => {
  129. document.querySelectorAll("iframe, ins, script, link, meta").forEach(el => {
  130. const src = el.src || el.href || "";
  131. const content = el.content || "";
  132. if (adDomains.some(domain => src.includes(domain)) || content.toLowerCase().includes("advertisement")) {
  133. el.remove();
  134. }
  135. });
  136. };
  137. removeAds();
  138. new MutationObserver(removeAds).observe(document.body, {
  139. childList: true,
  140. subtree: true
  141. });
  142. });
  143.  
  144. // Disable all animation scheduling
  145. window.requestAnimationFrame = () => {};
  146. window.setTimeout = fn => fn();
  147. window.setInterval = fn => fn();
  148. })();

QingJ © 2025

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