Profiles/Surge/Module/Block/YouTubeAds.sgmodule
Conners Hua 43fae0bf82 🚩
2021-08-05 11:46:46 +08:00

15 lines
605 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?.*adformat= - reject
[MITM]
hostname = %APPEND% *.googlevideo.com,www.youtube.com,s.youtube.com