Profiles/Surge/Module/Block/YouTubeAds.sgmodule

15 lines
605 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-08-06 15:00:46 +08:00
(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/((?!dclk_video_ads).)+)(ctier=L)(&.+) $1$4 header
2021-05-16 14:32:45 +08:00
^https?:\/\/[\w-]+\.googlevideo\.com\/((?!(dclk_video_ads|videoplayback)).)+&(oad|ctier) - 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
^https?:\/\/\s.youtube.com/api/stats/qoe?.*adformat= - reject
2020-09-01 15:48:32 +08:00
[MITM]
2021-05-16 14:32:45 +08:00
hostname = %APPEND% *.googlevideo.com,www.youtube.com,s.youtube.com