Uncap FPS

Uncaps the FPS limit on every website

// ==UserScript==
// @name         Uncap FPS
// @version      1.0
// @description  Uncaps the FPS limit on every website
// @author       hynap
// @match        *://*/*
// @grant        none
// @namespace https://gf.qytechs.cn/users/1381858
// ==/UserScript==

(function() {
    'use strict';

    const originalRequestAnimationFrame = window.requestAnimationFrame;

    window.requestAnimationFrame = function(callback) {
        return originalRequestAnimationFrame(function(timestamp) {
            setTimeout(() => callback(performance.now()), 0); // Uncap FPS
        });
    };

    if ('requestAnimationFrame' in window) {
        console.log('FPS uncapped.');
    }
})();

QingJ © 2025

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