Giter Club home page Giter Club logo

Comments (6)

Maasea avatar Maasea commented on July 28, 2024

修改的 sgmodule 看上去没什么问题,但是Shadowrocket规则如何去写我不太清楚,脚本在编写的也没有进行单独测试。

如果播放的时候没有广告,但是 PIP 和后台很少生效,可能是Shadowrocket不支持同时处理 request 和 response ?

你可以删掉下面 youtube.request 这一行,其他不变

youtube.request.beta=type=http-request,pattern=^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|reel\/reel_watch_sequence)\?,requires-body=1,binary-mode=1,script-path=https://raw.githubusercontent.com/Maasea/sgmodule/master/Script/Youtube/dist/youtube.request.beta.js

这样做可能会增加脚本的执行时间,但是在去广告的效果上区别不是很大

你也可以去找相关的 tg 群组寻求帮助,或者更换 App 测试。比如,Surge 现在有 7 天免费试用。

from sgmodule.

CraKeyBoy avatar CraKeyBoy commented on July 28, 2024

好的,非常感谢。我这边验证一下。

from sgmodule.

CraKeyBoy avatar CraKeyBoy commented on July 28, 2024

这边试了一下,没有改善。先关闭了。

from sgmodule.

CraKeyBoy avatar CraKeyBoy commented on July 28, 2024

使用这个脚本去 youtube 广告,小火箭需要关闭 udp,目前偶尔播放视频下的推荐列表页有图片广告,其他功能正常。感谢大佬的脚本。
image

image

from sgmodule.

Maasea avatar Maasea commented on July 28, 2024

关闭 UDP 转发是因为:在某些代理场景下,Youtube 有时候会使用 quic 协议进行通信(比如 Tun 模式 )。

在这种场景下脚本并不会执行。如果不想取消 UDP 转发,可以阻止 Youtube 的 UDP 请求让其回退到 TCP,比如使用下面的逻辑规则

  AND,((DOMAIN-SUFFIX,googlevideo.com), (PROTOCOL,UDP)),REJECT-DROP

因为逻辑规则并不是所有代理工具都支持,所以并没有在配置文件中体现。

至于播放页出现广告仍然是不符合预期的。如果是偶现应该是去广告遗漏(经过了多个版本的更新,已经很久没见到了),如果总能出现,应该是脚本执行出现问题了。

from sgmodule.

liweilalala avatar liweilalala commented on July 28, 2024

同shadowrocket的后台播放不生效,loon和quantumultx都可以

from sgmodule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.