diff --git a/Quantumult/Rewrite/Block/YouTubeAds.conf b/Quantumult/Rewrite/Block/YouTubeAds.conf index 43129f9..6e9e104 100644 --- a/Quantumult/Rewrite/Block/YouTubeAds.conf +++ b/Quantumult/Rewrite/Block/YouTubeAds.conf @@ -1,7 +1,7 @@ hostname = *.googlevideo.com,www.youtube.com,s.youtube.com -(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/((?!dclk_video_ads).)+)(ctier=L)(&.+) url 302 $1$4 -^https?:\/\/[\w-]+\.googlevideo\.com\/((?!(dclk_video_ads|videoplayback)).)+&(oad|ctier) url reject +(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)(ctier=L)(&.+) url 302 $1$4 +^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+(&oad|ctier) url reject ^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads url reject ^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) url reject diff --git a/Surge/Module/Block/YouTubeAds.sgmodule b/Surge/Module/Block/YouTubeAds.sgmodule index 20e504c..17c0905 100644 --- a/Surge/Module/Block/YouTubeAds.sgmodule +++ b/Surge/Module/Block/YouTubeAds.sgmodule @@ -3,8 +3,8 @@ #!system=ios [URL Rewrite] -(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/((?!dclk_video_ads).)+)(ctier=L)(&.+) $1$4 header -^https?:\/\/[\w-]+\.googlevideo\.com\/((?!(dclk_video_ads|videoplayback)).)+&(oad|ctier) - reject +(^https?:\/\/(?!redirector)[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+)(ctier=L)(&.+) $1$4 header +^https?:\/\/[\w-]+\.googlevideo\.com\/(?!(dclk_video_ads|videoplayback\?)).+(&oad|ctier) - reject ^https?:\/\/(www|s)\.youtube\.com\/api\/stats\/ads - reject ^https?:\/\/(www|s)\.youtube\.com\/(pagead|ptracking) - reject