Profiles/Surge/Module/Block/YouTubeAds.sgmodule

14 lines
505 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]
2020-10-18 10:57:26 +08:00
(^https?:\/\/[\w-]+\.googlevideo\.com\/.+)(ctier=L)(&.+) $1$3 302
^https?:\/\/[\w-]+\.googlevideo\.com\/.+&(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