Profiles/Surge/Module/Block/YouTubeAds.sgmodule
Conners Hua 92314b80d7 🚩
2021-10-08 09:08:44 +08:00

14 lines
615 B
Plaintext

#!name=Block YouTube Advertising
#!desc=仅用于视频广告,不适用允许 UDP 转发的节点及 Premium。
#!system=ios
[URL Rewrite]
(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)(ctier=L)(&.+) $1$3 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
^https?:\/\/\s.youtube.com/api/stats/qoe?.*(adcontext|adformat)= - reject
[MITM]
hostname = %APPEND% *.googlevideo.com,www.youtube.com,s.youtube.com