Profiles/Surge/Module/Block/YouTubeAds.sgmodule

14 lines
619 B
Plaintext
Raw Normal View History

2020-09-01 15:48:32 +08:00
#!name=Block YouTube Advertising
2021-08-05 11:46:46 +08:00
#!desc=仅用于视频广告,不适用允许 UDP 转发的节点及 Premium。
2020-09-01 15:48:32 +08:00
#!system=ios
2020-10-19 13:46:04 +08:00
[URL Rewrite]
2021-10-11 18:02:06 +08:00
(^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)&ctier=L(&.+) $1&ctier=A$2 header
2021-10-09 17:39:53 +08:00
^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+&oad - reject
2020-09-01 15:48:32 +08:00
2021-03-26 02:27:58 +08:00
^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads - reject
^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) - reject
2021-10-11 18:02:06 +08:00
^https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adcontext - reject
2021-03-26 02:27:58 +08:00
2020-09-01 15:48:32 +08:00
[MITM]
2021-10-09 11:57:30 +08:00
hostname = %APPEND% -redirector*.googlevideo.com,*.googlevideo.com,www.youtube.com,s.youtube.com