您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
READ THIS: To use this mod with minimal lag, your computer must be able to maintain the fps that you input. Use multiples of 60 to ensure minimal lag. You can use any fps value you want, but 120 and 180 will have the least lag. Thank you to Taxin for forcing me to create this. Thank you to Ancient for inspiring me to make something that actually works, unlike his client's fps uncap.
当前为
// ==UserScript== // @name Starblast.io FPS Bypass // @namespace http://tampermonkey.net/ // @version 1.31 // @description READ THIS: To use this mod with minimal lag, your computer must be able to maintain the fps that you input. Use multiples of 60 to ensure minimal lag. You can use any fps value you want, but 120 and 180 will have the least lag. Thank you to Taxin for forcing me to create this. Thank you to Ancient for inspiring me to make something that actually works, unlike his client's fps uncap. // @author ✨Stardust™ // @match *://starblast.io/* // @grant none // @license MIT // ==/UserScript== // CHANGE YOUR FPS HERE!!!@$$#@$#@$ FPS HERE &*^**^*^*&^% CHANGE FPS BELOW!!!!! const getDesiredFPS = () => 120; // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^^^^^ CHANGE FPS ^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^^^^^ 240 IS THE MAX ^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^ 120 or 180 is recommended ^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (function() { 'use strict'; const jjj = () => 15 const jjjjjj = () => 4 const jjjj = () => { if (getDesiredFPS() > jjj() * jjjjjj() * jjjjjj()) { return jjjjjj() * jjj() * jjjjjj()} if (getDesiredFPS() < jjjjjj() * jjj()) { return jjj() * jjjjjj()} else { return getDesiredFPS()} } const jjjjj = jjjj(); // Helper function to inject a script into the page context function injectScript(fn) { const script = document.createElement('script'); script.textContent = `(${fn})();`; document.documentElement.appendChild(script); script.remove(); } // Function to override the game's requestAnimationFrame to achieve the desired FPS function j() { const originalRequestAnimationFrame = window.requestAnimationFrame; let lastTime = 0; window.requestAnimationFrame = function(callback) { const currentTime = performance.now(); const timeToCall = Math.max(0, (1000 / jjjjj) - (currentTime - lastTime)); const id = setTimeout(function() { callback(currentTime + timeToCall); }, timeToCall); lastTime = currentTime + timeToCall; return id; }; // Create FPS counter display const jj = document.createElement('div'); jj.id = 'fps-counter'; jj.style.position = 'fixed'; jj.style.top = '10px'; jj.style.left = '10px'; jj.style.padding = '5px'; jj.style.backgroundColor = 'rgba(0, 0, 0, 0.5)'; jj.style.color = 'white'; jj.style.fontSize = '14px'; jj.style.zIndex = '10000'; jj.textContent = `Target FPS: ${jjjjj}`; document.body.appendChild(jj); } // Inject the FPS override and counter function into the page context injectScript(j.toString().replace(/jjjjj/g, jjjjj)); })();