diff --git a/Surge/Surge 2/Rule.conf b/Surge/Surge 2/Rule.conf index 705c1e5..8689b4d 100644 --- a/Surge/Surge 2/Rule.conf +++ b/Surge/Surge 2/Rule.conf @@ -172,6 +172,20 @@ DOMAIN-SUFFIX,m-78.jp,AdBlock DOMAIN-SUFFIX,nichibenren.or.jp,AdBlock DOMAIN-SUFFIX,nicorette.co.kr,AdBlock +URL-REGEX,https?:\/\/.+.googlevideo.com\/ptracking\?pltype=adhost,REJECT +URL-REGEX,https?:\/\/.+.youtube.com\/api\/stats\/ads,REJECT +URL-REGEX,https?:\/\/.+.youtube.com\/get_midroll_,REJECT +URL-REGEX,https?:\/\/.+.youtube.com\/pagead\/,REJECT +URL-REGEX,https?:\/\/.+.youtube.com\/ptracking\?,REJECT +URL-REGEX,https?:\/\/.+.youtube.com\/_get_ads,REJECT +URL-REGEX,https?:\/\/premiumyva.appspot.com\/vmclickstoadvertisersite,REJECT +URL-REGEX,https?:\/\/s0.2mdn.net\/ads\/,REJECT +URL-REGEX,https?:\/\/stats.tubemogul.com\/stats\/,REJECT +URL-REGEX,https?:\/\/youtubei.googleapis.com\/.+ad_break,REJECT +URL-REGEX,https?:\/\/youtubei.googleapis.com\/youtubei\/.+(ad|log),REJECT +URL-REGEX,https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adformat,REJECT +URL-REGEX,https?:\/\/[\w-]+\.googlevideo\.com\/.+&(oad|ctier),REJECT-TINYGIF + # > Sohu DOMAIN-SUFFIX,adnet.sohu.com,AdBlock DOMAIN-SUFFIX,aty.sohu.com,AdBlock diff --git a/Surge/Surge 3/Module/YouTube.sgmodule b/Surge/Surge 3/Module/YouTube.sgmodule index e7d64ff..901f3e7 100644 --- a/Surge/Surge 3/Module/YouTube.sgmodule +++ b/Surge/Surge 3/Module/YouTube.sgmodule @@ -7,15 +7,14 @@ URL-REGEX,https?:\/\/.+.youtube.com\/api\/stats\/ads,REJECT URL-REGEX,https?:\/\/.+.youtube.com\/get_midroll_,REJECT URL-REGEX,https?:\/\/.+.youtube.com\/pagead\/,REJECT URL-REGEX,https?:\/\/.+.youtube.com\/ptracking\?,REJECT -URL-REGEX,https?:\/\/m.youtube.com\/_get_ads,REJECT +URL-REGEX,https?:\/\/.+.youtube.com\/_get_ads,REJECT URL-REGEX,https?:\/\/premiumyva.appspot.com\/vmclickstoadvertisersite,REJECT URL-REGEX,https?:\/\/s0.2mdn.net\/ads\/,REJECT URL-REGEX,https?:\/\/stats.tubemogul.com\/stats\/,REJECT URL-REGEX,https?:\/\/youtubei.googleapis.com\/.+ad_break,REJECT URL-REGEX,https?:\/\/youtubei.googleapis.com\/youtubei\/.+(ad|log),REJECT - -[Script] -http-request ^https://[\s\S]*\.googlevideo\.com/.*&(oad|ctier) script-path=https://Choler.github.io/Surge/Script/YouTube.js +URL-REGEX,https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adformat,REJECT +URL-REGEX,https?:\/\/[\w-]+\.googlevideo\.com\/.+&(oad|ctier),REJECT-TINYGIF [MITM] hostname = %APPEND% *.googlevideo.com, *.youtube.com, youtubei.googleapis.com \ No newline at end of file