max / Web CPU Tamer

安装步骤: 先安装脚本管理器,再点“安装”,最后打开脚本适用的网站。

用户脚本新手指南 Chrome Edge Firefox

发布时间:

版本: 2026.100.0.1+1430a11 更新于

摘要: 通过隐式的异步调度延迟减少浏览器的能耗

支持: https://github.com/cyfung1031/userscript-supports

许可证: MIT; https://opensource.org/licenses/MIT

许可证: MIT License

反功能: 未说明

脚本来源与更新状态

以下数据来自原始来源,与本站收到的安装请求分开统计。

原始脚本: Web CPU Tamer

来源版本: 2026.100.0

最近来源检查:

最近成功检查:

来源站日安装量
0
来源站总安装量
0
本站安装请求
0

本站收到的请求不代表用户已完成安装。

点击安装只表示本站收到安装请求,不代表安装已完成。 安装后无法使用?查看问题反馈与排查

🌿 Web CPU Tamer

Reduce your browser’s CPU usage and energy consumption by adding subtle, smart delays to JavaScript scheduling — frame-aligned, silent, and effective.


📌 What does this userscript do?

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.


🚀 Highlights

🧠 Frame-aligned scheduling delays

The script enhances:

  • setTimeout
  • setInterval
  • requestAnimationFrame

Each scheduled task is wrapped with two async deferrals, using:

  • queueMicrotask — to yield within the JS task queue
  • MutationObserver — to wait until the next browser rendering cycle

This creates a render-aware delay, ensuring the browser gets time to layout, paint, or cool the CPU before heavy scripts resume.

🤫 Stealth-compatible timing

The script adds a tiny offset to timeout delays to evade detection or interference by:

  • Brave Browser (privacy patches)
  • uBlock Origin (stealth scripts)
  • Chrome’s heuristic throttling

This ensures the delays remain effective and invisible.

🛡️ Safe error handling

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.

🧱 Clean modular design

Shared async logic is extracted into reusable helpers. Cancellation tracking is handled cleanly with Sets for setTimeout, setInterval, and requestAnimationFrame.


✅ Key Features

  • ⚡ Reduces CPU wakeups and JS over-scheduling
  • 🔋 Helps extend battery life on laptops and mobile
  • 💻 Improves responsiveness under load
  • 🤫 Bypasses Brave/uBlock/heuristic interference
  • 📦 Uses only native APIs (no timers, no blocking)
  • 🛑 Respects cancellation of scheduled tasks
  • 🧩 Does NOT modify webpage content or logic
  • 🔐 Safe, clean, and dependency-free

❌ What it doesn’t do

  • ❌ It doesn’t block ads or trackers
  • ❌ It doesn’t alter visuals, DOM, or network requests
  • ❌ It doesn’t interfere with page layout, styles, or scripts
  • ✅ It simply adjusts when tasks run — not how

🌐 Where it runs

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 Compatibility

Browser Status
Chrome / Chromium ✅ Fully supported
Firefox ✅ Fully supported
Brave ✅ Works reliably (YouTube-safe as well)
Edge ✅ Fully supported
Safari ⚠️ Works, but mutation timing may vary slightly

Also works with:

  • ✅ Tampermonkey (page context)
  • ✅ Violentmonkey (page/content context)
  • ✅ Firemonkey (content context)
  • ⚠️ Stay (page context, incompatible with pages that have CSP restrictions)

🔐 Security & Privacy

  • 🧠 No trackers, telemetry, or fingerprinting
  • 🔒 No remote requests or hidden analytics
  • 💡 Uses only local, inspectable logic
  • 📜 Open source under the MIT License

🧙 Author

CY Fung
🔗 GitHub Support Page


🧾 License

MIT License
Use, modify, or redistribute freely.

评分: 0