Profiles/Surge/Module/Block/YouTubeAds.sgmodule

14 lines
559 B
Plaintext
Raw Normal View History

2020-09-01 15:48:32 +08:00
#!name=Block YouTube Advertising
2021-03-26 02:27:58 +08:00
#!desc=跳过 YouTube 视频广告Premium 勿用。
2020-09-01 15:48:32 +08:00
#!system=ios
2020-10-19 13:46:04 +08:00
[URL Rewrite]
2021-04-27 12:42:56 +08:00
(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/((?!dclk_video_ads).)+)(ctier=L)(&.+) $1$3 302
^https?:\/\/[\w-]+\.googlevideo\.com\/((?!dclk_video_ads).)+&(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-03-26 02:27:58 +08:00
hostname = %APPEND% *.googlevideo.com,www.youtube.com,s.youtube.com