自動跳過 YouTube 廣告

立即自動跳過 YouTube 廣告。 YouTube 廣告攔截器警告未被偵測到。

< 腳本自動跳過 YouTube 廣告的回應

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

§
發表於:2024-09-29
編輯:2024-09-29

It works on regular videos, just not on shorts. It would be best if you excluded https://www.youtube.com/shorts/*

function skipAd() {
    // Check if the current URL is a YouTube Shorts URL and exit the function if true
    if (window.location.pathname.startsWith('/shorts/')) {
        return; // Do nothing for Shorts
    }
//rest of the code
}

Other than that, everything works fine. thanks!

tientq64作者
§
發表於:2024-09-30

YouTube uses a single-page app, using @exclude will not run the script when you start on a Shorts page. I have updated the code based on your code. Thanks for your contribution.

§
發表於:2024-09-30

Thanks for updating that! I have been manually adding that to my code, so I appreciate you adding it to the original.

If I find more valuable changes, I will let you know.

PS -- ignore all the haters in the feedback. The negative reviews *always* are more than the good ones because the only ones who review are the complainers, and most of the people who use it without issue never review.

tientq64作者
§
發表於:2024-10-03

You're welcome! If you find any other valuable changes, feel free to contribute.

I agree. In fact, most satisfied users won't leave reviews, so negative reviews are not many.

發表回覆

登入以回復

QingJ © 2025

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