您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces requestAnimationFrame with setTimeout to uncap FPS in Starblast.io (may cause flickering)
// ==UserScript== // @name Starblast.io Aggressive FPS Uncap // @namespace http://tampermonkey.net/ // @version 1.0 // @description Replaces requestAnimationFrame with setTimeout to uncap FPS in Starblast.io (may cause flickering) // @author WOB // @match *://starblast.io/* // @license MIT License // @grant none // ==/UserScript== (function () { 'use strict'; // Replace requestAnimationFrame with ultra-fast setTimeout window.requestAnimationFrame = function(callback) { return setTimeout(() => callback(performance.now()), 0); }; // Slightly speed up setTimeout and setInterval const originalSetTimeout = window.setTimeout; window.setTimeout = function(fn, delay, ...args) { return originalSetTimeout(fn, Math.max(0, delay - 5), ...args); }; const originalSetInterval = window.setInterval; window.setInterval = function(fn, delay, ...args) { return originalSetInterval(fn, Math.max(1, delay - 5), ...args); }; })();