|
| 1 | +#!name=YouTube去广告模块 |
| 2 | +#!desc=去除YouTube视频内广告 |
| 3 | + |
| 4 | +[Rule] |
| 5 | +URL-REGEX,https?:\/\/.+.googlevideo.com\/ptracking\?pltype=adhost,REJECT |
| 6 | +URL-REGEX,https?:\/\/.+.youtube.com\/api\/stats\/ads,REJECT |
| 7 | +URL-REGEX,https?:\/\/.+.youtube.com\/get_midroll_,REJECT |
| 8 | +URL-REGEX,https?:\/\/.+.youtube.com\/pagead\/,REJECT |
| 9 | +URL-REGEX,https?:\/\/.+.youtube.com\/ptracking\?,REJECT |
| 10 | +URL-REGEX,https?:\/\/.+.youtube.com\/_get_ads,REJECT |
| 11 | +URL-REGEX,https?:\/\/premiumyva.appspot.com\/vmclickstoadvertisersite,REJECT |
| 12 | +URL-REGEX,https?:\/\/s0.2mdn.net\/ads\/,REJECT |
| 13 | +URL-REGEX,https?:\/\/stats.tubemogul.com\/stats\/,REJECT |
| 14 | +URL-REGEX,https?:\/\/youtubei.googleapis.com\/.+ad_break,REJECT |
| 15 | +URL-REGEX,https?:\/\/youtubei.googleapis.com\/youtubei\/.+(ad|log),REJECT |
| 16 | +URL-REGEX,https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adformat,REJECT |
| 17 | +URL-REGEX,https?:\/\/[\w-]+\.googlevideo\.com\/.+&oad,REJECT-TINYGIF |
| 18 | + |
| 19 | +[URL Rewrite] |
| 20 | +ctier=[A-Z] citer=A 302 |
| 21 | + |
| 22 | +[Script] |
| 23 | +YouTube去广告 = type=http-request,pattern=^https?:\/\/.+?\.googlevideo\.com\/.+&(oad|ctier)=(?!A),script-path=https://choler.github.io/Surge/Script/YouTube.js |
| 24 | + |
| 25 | +[MITM] |
| 26 | +hostname = %APPEND% *.googlevideo.com |
0 commit comments