YouTube去廣告

腳本用於移除 YouTube 廣告,包括靜態廣告和視頻廣告。不會干擾網路,安全。

< 腳本YouTube去廣告的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於:2024-09-12

In the `if` statement inside the function `playAfterAd`, you should null-check the `video` variable first.
Otherwise the script throws in that line (200) and ramps up the CPU utilization when for example, a Youtube live video is playing with the chat OPEN.

`if(video.paused && video.currentTime<1){`

should be changed to:

`if(video && video.paused && video.currentTime<1){`

§
發表於:2024-09-12

Also, if you don't want to trigger the observer unnecessarily (I think), maybe set the "subtree" parameter to false; the ads are still skipped and the chat does not trigger que observer.

§
發表於:2024-09-21

thx bro

發表回覆

登入以回復

QingJ © 2025

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