Uncap FPS

Uncaps the FPS limit on every website

  1. // ==UserScript==
  2. // @name Uncap FPS
  3. // @version 1.0
  4. // @description Uncaps the FPS limit on every website
  5. // @author hynap
  6. // @match *://*/*
  7. // @grant none
  8. // @namespace https://gf.qytechs.cn/users/1381858
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. const originalRequestAnimationFrame = window.requestAnimationFrame;
  15.  
  16. window.requestAnimationFrame = function(callback) {
  17. return originalRequestAnimationFrame(function(timestamp) {
  18. setTimeout(() => callback(performance.now()), 0); // Uncap FPS
  19. });
  20. };
  21.  
  22. if ('requestAnimationFrame' in window) {
  23. console.log('FPS uncapped.');
  24. }
  25. })();

QingJ © 2025

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