diff --git a/Surge/Surge 3/Module/YouTube.sgmodule b/Surge/Surge 3/Module/YouTube.sgmodule index de749c8..bc61aef 100644 --- a/Surge/Surge 3/Module/YouTube.sgmodule +++ b/Surge/Surge 3/Module/YouTube.sgmodule @@ -1,21 +1,16 @@ #!name=YouTube #!desc=YouTube videos removes ads. -[Rule] -URL-REGEX,https?:\/\/.+\.googlevideo\.com\/.+?)(&ctier=L|\/ctier\/L)((&|\/).+?)(,ctier|%2Cctier)((,|%2C),REJECT-TINYGIF -URL-REGEX,https?:\/\/.+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+(&oad|ctier),REJECT-TINYGIF -URL-REGEX,https?:\/\/.+\.googlevideo\.com\/ptracking\?pltype=adhost,REJECT-TINYGIF -URL-REGEX,https?:\/\/.+\.youtube\.com\/api\/stats\/ads,REJECT-TINYGIF -URL-REGEX,https?:\/\/.+\.youtube\.com\/get_midroll_,REJECT-TINYGIF -URL-REGEX,https?:\/\/.+\.youtube\.com\/(pagead|ptracking)\/,REJECT-TINYGIF -URL-REGEX,https?:\/\/.+\.youtube\.com\/_get_ads,REJECT-TINYGIF -URL-REGEX,https?:\/\/premiumyva\.appspot\.com\/vmclickstoadvertisersite,REJECT-TINYGIF -URL-REGEX,https?:\/\/s0\.2mdn\.net\/ads\/,REJECT-TINYGIF -URL-REGEX,https?:\/\/stats\.tubemogul\.com\/stats\/,REJECT-TINYGIF -URL-REGEX,https?:\/\/youtubei\.googleapis\.com\/.+ad_break,REJECT-TINYGIF -URL-REGEX,https?:\/\/youtubei\.googleapis\.com\/youtubei\/.+(ad|log),REJECT-TINYGIF -URL-REGEX,https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?.*adformat,REJECT-TINYGIF -URL-REGEX,https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)(ctier=L)(&.+),REJECT-TINYGIF +[URL Rewrite] +(^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+?)&ctier=L(&.+?),ctier,(.+) url 302 $1$2$3 +^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+&oad url reject-200 + +^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|reel\/reel_watch_sequence)\? url script-request-body https://raw.githubusercontent.com/Maasea/sgmodule/master/Script/Youtube/dist/youtube.request.beta.js +^https:\/\/youtubei\.googleapis\.com\/youtubei\/v1\/(browse|next|player|search|reel\/reel_watch_sequence|guide|account\/get_setting)\? url script-response-body https://raw.githubusercontent.com/Maasea/sgmodule/master/Script/Youtube/dist/youtube.response.beta.js + +^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads url reject-200 +^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) url reject-200 +^https?:\/\/s\.youtube\.com\/api\/stats\/qoe\?adcontext url reject-200 [MITM] -hostname = %APPEND% *.googlevideo.com, *.youtube.com, youtubei.googleapis.com +hostname = %APPEND% -redirector*.googlevideo.com,*.googlevideo.com,www.youtube.com,s.youtube.com,youtubei.googleapis.com \ No newline at end of file