This commit is contained in:
Conners Hua 2021-10-09 11:57:30 +08:00
parent d02c11a85c
commit 2e9b7b8b22
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
hostname = *.googlevideo.com,www.youtube.com,s.youtube.com
hostname = -redirector*.googlevideo.com,*.googlevideo.com,www.youtube.com,s.youtube.com
(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)(ctier=[A-Z])(&.+) url 302 $1ctier=A$3
(^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)&ctier=L(&.+) url 302 $1$2
^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+(&oad|ctier) url reject
^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads url reject

View File

@ -3,11 +3,11 @@
#!system=ios
[URL Rewrite]
(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)(ctier=[A-Z])(&.+) $1ctier=A$3 header
(^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)&ctier=L(&.+) $1$2 header
^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+(&oad|ctier) - reject
^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads - reject
^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) - reject
[MITM]
hostname = %APPEND% *.googlevideo.com,www.youtube.com,s.youtube.com
hostname = %APPEND% -redirector*.googlevideo.com,*.googlevideo.com,www.youtube.com,s.youtube.com