mirror of
https://github.com/fmz200/wool_scripts.git
synced 2026-01-02 16:14:54 +08:00
split Surge module rules
This commit is contained in:
22
Surge/module/split/partY/YouTube.sgmodule
Normal file
22
Surge/module/split/partY/YouTube.sgmodule
Normal file
@ -0,0 +1,22 @@
|
||||
#!name=YouTube
|
||||
#!desc=某些APP要清除缓存或者重新安装拦截广告才会生效!
|
||||
#!author=奶思
|
||||
#!icon=https://raw.githubusercontent.com/fmz200/wool_scripts/main/icons/gif/naisi-01.gif
|
||||
#!category=奶思的模块
|
||||
#!homepage=https://github.com/fmz200/wool_scripts
|
||||
#!raw-url=https://github.com/fmz200/wool_scripts/raw/main/Loon/plugin/split/partY/YouTube.lpx
|
||||
#!tg-group=https://t.me/lanjieguanggao
|
||||
#!date=2025-08-21 22:37:00
|
||||
#!arguments=youtube_enable:true
|
||||
|
||||
[Map Local]
|
||||
# 播放页广告
|
||||
^https:\/\/rr[\w-]+\.googlevideo\.com\/initplayback\? data-type=text data="{}" status-code=200 header="Content-Type:application/json"
|
||||
|
||||
[Script]
|
||||
# 响应体
|
||||
YouTube响应体 = type=http-response, pattern=^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|search|reel\/reel_watch_sequence|guide|account\/get_setting|get_watch), script-path=https://raw.githubusercontent.com/Maasea/sgmodule/refs/heads/master/Script/Youtube/youtube.response.js, requires-body=true, binary-body-mode=true, timeout=60
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% rr*.googlevideo.com, youtubei.googleapis.com
|
||||
|
||||
Reference in New Issue
Block a user