diff --git a/Quantumult/Rewrite/Block/YouTubeAds.conf b/Quantumult/Rewrite/Block/YouTubeAds.conf index b4b64c4..314036e 100644 --- a/Quantumult/Rewrite/Block/YouTubeAds.conf +++ b/Quantumult/Rewrite/Block/YouTubeAds.conf @@ -1,7 +1,7 @@ hostname = -redirector*.googlevideo.com,*.googlevideo.com,www.youtube.com,s.youtube.com (^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)&ctier=L(&.+) url 302 $1$2 -^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+(&oad|ctier) url reject +^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+&oad url reject ^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads url reject ^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) url reject \ No newline at end of file diff --git a/Surge/Module/Block/YouTubeAds.sgmodule b/Surge/Module/Block/YouTubeAds.sgmodule index aee888d..40c91b6 100644 --- a/Surge/Module/Block/YouTubeAds.sgmodule +++ b/Surge/Module/Block/YouTubeAds.sgmodule @@ -4,7 +4,7 @@ [URL Rewrite] (^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)&ctier=L(&.+) $1$2 header -^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+(&oad|ctier) - reject +^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+&oad - reject ^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads - reject ^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) - reject