-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathyoutube.module
More file actions
22 lines (18 loc) · 1 KB
/
youtube.module
File metadata and controls
22 lines (18 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!url=https://raw.githubusercontent.com/itcast-l/shadowrocket-module/main/youtube.module
#!name=去除 Youtube 广告
#!desc=去除 Youtube 广告(Beta)
#Tg:https://t.me/it_cast
#更新时间:2023-01-29
# 删除 瀑布流、视频、搜索中出现的广告和Shorts,
# 删除 Shorts 内的视频广告
# 删除 底部 上传 按钮
# 增加 画中画(PIP), 后台播放
# 广告信息会有遗漏,可能偶现广告
[Script]
# 该模块已足够全面,无需其他规则混用,防止重写规则被破坏。
youtube = type=http-response,pattern=^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|search|reel\/reel_watch_sequence|guide|account\/get_setting),requires-body=1,binary-body-mode=1,max-size=3145728,script-path=https://raw.githubusercontent.com/itcast-l/shadowrocket-module/main/js/Youtube.js
[URL Rewrite]
# 使用 Mock 减少开销
^https?:\/\/[\w-]+\.googlevideo\.com\/initplayback.+&oad - reject-img
[MITM]
hostname = %APPEND% *.googlevideo.com, youtubei.googleapis.com