Profiles/Surge/Module/Block/YouTubeAds.sgmodule
Conners Hua 52dcfb534c 🚩 #186
2021-08-06 15:00: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$4 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