youtube-adb

A script to remove YouTube ads, including static ads and video ads, without interfering with the network and ensuring safety.

< youtube-adbについてのフィードバック

レート:可 - スクリプトは動作するがバグがある

§
投稿日: 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

返信を投稿

返信を投稿するにはログインしてください。