diff --git a/Quantumult/Outbound.conf b/Quantumult/Outbound.conf index 8e0afa8..79096b0 100644 --- a/Quantumult/Outbound.conf +++ b/Quantumult/Outbound.conf @@ -257,7 +257,7 @@ https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrit https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/AdvertisingPlus.conf, tag=🛡Block Advertising+, update-interval=172800, enabled=true # Block YouTube Ads -https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/YouTubeAds.conf, tag=🛡(<=16.43.2)不适用允许 UDP 转发的节点及 Premium, update-interval=172800, enabled=false +https://raw.githubusercontent.com/DivineEngine/Profiles/master/Quantumult/Rewrite/Block/YouTubeAds.conf, tag=🛡Block YouTube Ads, update-interval=172800, enabled=false [server_local] # diff --git a/Surge/Module/Block/YouTubeAds.sgmodule b/Surge/Module/Block/YouTubeAds.sgmodule index 1fb8a5b..4353baf 100644 --- a/Surge/Module/Block/YouTubeAds.sgmodule +++ b/Surge/Module/Block/YouTubeAds.sgmodule @@ -1,5 +1,8 @@ -#!name=Block YouTube(<=16.43.2) Advertising -#!desc=仅用于视频广告,不适用允许 UDP 转发的节点及 Premium +#!name=Block YouTube Advertising +#!desc=仅用于视频广告 + +[Rule] +AND,((PROTOCOL,UDP),(DEST-PORT,443)),REJECT-NO-DROP [URL Rewrite] (^https?:\/\/[\w-]+\.googlevideo\.com\/(?!dclk_video_ads).+?)&ctier=L(&.+?),ctier,(.+) $1$2$3 header