您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
通过隐式的异步调度延迟减少浏览器的能耗
当前为
Reduce your browser’s CPU usage and energy consumption by adding subtle, smart delays to JavaScript scheduling — frame-aligned, silent, and effective.
Web CPU Tamer is a lightweight performance and energy optimization script. It works by inserting tiny, precisely-timed async delays before JavaScript tasks run — giving your browser room to render, cool down, and breathe.
Websites often queue up lots of timers and animation loops that compete with rendering, input, and other system tasks. This script gently slows down how frequently those scripts run, improving overall efficiency — without breaking website functionality.
The script enhances:
setTimeout
setInterval
requestAnimationFrame
Each scheduled task is wrapped with two async deferrals, using:
queueMicrotask
— to yield within the JS task queueMutationObserver
— to wait until the next browser rendering cycleThis creates a render-aware delay, ensuring the browser gets time to layout, paint, or cool the CPU before heavy scripts resume.
The script adds a tiny offset to timeout delays to evade detection or interference by:
This ensures the delays remain effective and invisible.
All async task wrappers isolate exceptions and safely re-throw them in the next microtask. This avoids silent failures and maintains helpful stack traces for debugging.
Shared async logic is extracted into reusable helpers. Cancellation tracking is handled cleanly with Set
s for setTimeout
, setInterval
, and requestAnimationFrame
.
The script runs automatically on all standard webpages:
http://*/*
https://*/*
It is excluded from direct links to:
.txt, .png, .jpg, .jpeg, .gif, .xml, .svg, .manifest, .log, .ini
So image viewers, text files, and static file URLs are unaffected.
Browser | Status |
---|---|
Chrome / Chromium | ✅ Fully supported |
Firefox | ✅ Fully supported |
Brave | ✅ Works reliably (YouTube-safe too) |
Edge | ✅ Fully supported |
Safari | ⚠️ Works, but mutation timing may vary slightly |
Also works with:
CY Fung
🔗 GitHub Support Page
MIT License
Use, modify, or redistribute freely.