Profiles/Surge/Module/Block/YouTubeAds.sgmodule
Conners Hua 9f63eee8fb 🚩
2021-08-19 16:24:54 +08:00

15 lines
603 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