您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Reduce Browser's Energy Impact for playing YouTube Video
当前为
Ideal for users 𝖢𝖸 𝖥𝗎𝗇𝗀 who frequently encounter "YouTube CPU Tamer by AnimationFrame", this userscript is designed to optimize CPU and GPU usage while watching YouTube videos.
This userscript intercepts and customizes the execution of the "setTimeout" and "setInterval" functions, which are commonly used for scheduling tasks in JavaScript. By synchronizing these tasks with the browser's "requestAnimationFrame" function, it ensures that tasks are executed more efficiently and in alignment with the screen's refresh rate.
Additionally, the script checks for GPU acceleration support to leverage hardware capabilities and further reduce the energy impact. It also manages task execution in background tabs, adjusting intervals to minimize CPU usage when the tab is not active.
In essence, this script helps maintain smoother video playback and reduces power consumption, making it ideal for users looking to enhance their YouTube viewing experience on resource-constrained devices.
Thank you!
Best regards, AstralRift