Comments (6)
修改的 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.
好的,非常感谢。我这边验证一下。
from sgmodule.
这边试了一下,没有改善。先关闭了。
from sgmodule.
使用这个脚本去 youtube 广告,小火箭需要关闭 udp,目前偶尔播放视频下的推荐列表页有图片广告,其他功能正常。感谢大佬的脚本。
from sgmodule.
关闭 UDP 转发是因为:在某些代理场景下,Youtube 有时候会使用 quic 协议进行通信(比如 Tun 模式 )。
在这种场景下脚本并不会执行。如果不想取消 UDP 转发,可以阻止 Youtube 的 UDP 请求让其回退到 TCP,比如使用下面的逻辑规则
AND,((DOMAIN-SUFFIX,googlevideo.com), (PROTOCOL,UDP)),REJECT-DROP
因为逻辑规则并不是所有代理工具都支持,所以并没有在配置文件中体现。
至于播放页出现广告仍然是不符合预期的。如果是偶现应该是去广告遗漏(经过了多个版本的更新,已经很久没见到了),如果总能出现,应该是脚本执行出现问题了。
from sgmodule.
同shadowrocket的后台播放不生效,loon和quantumultx都可以
from sgmodule.
Related Issues (20)
- 小火箭油管去广告-视频开头广告有时可以有时不行 HOT 9
- 油管视频pip部分失效 HOT 2
- arguments参数如何修改 HOT 4
- youtube脚本出现无法加载评论和推荐视频的情况 HOT 1
- YouTube module is not working HOT 1
- 关于最近一些奇怪的现象,来汇报一下 HOT 6
- YouTube看直播时出现大量RangeError日志 HOT 1
- QX failed to update with Parser HOT 1
- Youtube转圈
- YouTube播放页面有遗漏的广告 HOT 2
- Youtube Module not working! HOT 6
- QuantuX添加模块,报错 HOT 5
- What does these two rules mean? HOT 5
- Processing browse request throws Error: illegal tag: field no 3 wire type 7 HOT 2
- youtube字幕默认开启的问题 HOT 2
- PIP and background play on YouTube not working? HOT 5
- 更新YouTube版本,发现v1/get_watch HOT 6
- IOS Youtube app最新版本19.23.3小火箭去广告问题 HOT 5
- 可以添加自动字幕么
- Surge tv 作为旁路由,开启模块后电脑无法访问 youtube 视频
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sgmodule.