您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
通过隐式的异步调度延迟减少浏览器的能耗
当前为
Reduce your browser’s CPU usage and energy consumption with invisible async scheduling magic.
Web CPU Tamer adds subtle delays to JavaScript tasks running on websites. These delays are intelligently scheduled to give your browser time to "breathe" between heavy tasks — helping reduce CPU usage, heat generation, and power drain, especially on laptops and mobile devices.
Modern websites often run a lot of background JavaScript — animations, tracking, analytics, timers, and more. This can:
This script helps by slowing down how often JavaScript tasks are processed, without breaking the website’s functionality. It’s like giving your browser scheduled naps so it can stay cool and responsive.
The script modifies how these functions behave:
setTimeout(...)
setInterval(...)
requestAnimationFrame(...)
Before each task runs, it introduces two small, invisible delays using:
queueMicrotask()
to yield to the browser,MutationObserver
trick to wait for a brief moment in the event loop.This helps smooth out bursts of activity, letting the browser:
It works quietly in the background — you won’t notice it, but your CPU will!
To avoid interfering with non-HTML files, this script automatically excludes URLs that end in:
.txt, .png, .jpg, .jpeg, .gif, .xml, .svg, .manifest, .log, .ini
This way, it won’t touch direct image or text file links.
Special handling is included for Brave + YouTube where extra CPU patches may be enforced.
Just click the “Install” button on GreasyFork and let Tampermonkey do the rest. The script will automatically run on all matching pages.
CY Fung
GitHub Support Page »
This userscript is licensed under the MIT License.
N/A