From 5bbcb69d3c9ac598323d65860d97ca6274b71871 Mon Sep 17 00:00:00 2001 From: blackmatrix7 <27717518+blackmatrix7@users.noreply.github.com> Date: Wed, 18 May 2022 17:44:14 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=9F=A5=E4=B9=8E=E5=8A=A9=E6=89=8B]=20?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=A2=84=E5=8A=A0=E8=BD=BD=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/zhihu/README.md | 1 - script/zhihu/zhihu_lite.lnplugin | 9 ++++++++- script/zhihu/zhihu_plus.lnplugin | 12 ++++++++---- script/zhihu/zhihu_plus.qxrewrite | 2 -- script/zhihu/zhihu_remove_ads.list | 2 -- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/script/zhihu/README.md b/script/zhihu/README.md index d62f3e246..4668fd36b 100644 --- a/script/zhihu/README.md +++ b/script/zhihu/README.md @@ -27,7 +27,6 @@ 17. 部分功能支持BoxJS配置 18. 付费内容文首提醒✨ 19. 推广内容文首提醒✨ -20. 拦截部分回答预加载以节约流量✨ 21. 去除官方账号的推广消息✨ 22. 去除推荐页中黑名单用户的回答✨ 23. 去除回答列表中黑名单用户的回答✨ diff --git a/script/zhihu/zhihu_lite.lnplugin b/script/zhihu/zhihu_lite.lnplugin index ba071fb97..0e4ac4ff1 100644 --- a/script/zhihu/zhihu_lite.lnplugin +++ b/script/zhihu/zhihu_lite.lnplugin @@ -1,4 +1,9 @@ -# 知乎去广告 +#!name= 知乎助手Lite +#!desc= 知乎助手Lite,只提供最纯粹的去广告功能。 +#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/zhihu +#!author= blackmatrix7 +#!homepage= https://github.com/blackmatrix7/ios_rule_script +#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu.png [Rule] # 知乎去广告 @@ -9,6 +14,8 @@ DOMAIN,appcloud2.in.zhihu.com,REJECT DOMAIN,mqtt.zhihu.com,REJECT DOMAIN,sugar.zhihu.com,REJECT USER-AGENT,AVOS*,REJECT +# 拦截知乎开屏广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\?,REJECT # 拦截知乎回答下的广告 URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations,REJECT # 拦截知乎品牌提问广告 diff --git a/script/zhihu/zhihu_plus.lnplugin b/script/zhihu/zhihu_plus.lnplugin index d2bf28ae1..6d104b362 100644 --- a/script/zhihu/zhihu_plus.lnplugin +++ b/script/zhihu/zhihu_plus.lnplugin @@ -1,6 +1,10 @@ -# 知乎去广告及功能增强 +#!name= 知乎助手Plus +#!desc= 知乎助手Plus,去广告及功能增强。 +#!openUrl=https://github.com/blackmatrix7/ios_rule_script/tree/master/script/zhihu +#!author= blackmatrix7 +#!homepage= https://github.com/blackmatrix7/ios_rule_script +#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu.png -[Rule] # 知乎去广告 DOMAIN,118.89.204.198,REJECT IP-CIDR,118.89.204.198/32,REJECT,no-resolve @@ -9,10 +13,10 @@ DOMAIN,appcloud2.in.zhihu.com,REJECT DOMAIN,mqtt.zhihu.com,REJECT DOMAIN,sugar.zhihu.com,REJECT USER-AGENT,AVOS*,REJECT +# 拦截知乎开屏广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\?,REJECT # 拦截知乎回答下的广告 URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations,REJECT -# 知乎拦截部分预加载 -URL-REGEX,^https?:\/\/www\.zhihu\.com\/appview\/(p|v2\/answer|zvideo)\/.*entry=(preload-topstory|preload-search|preload-subscription),REJECT # 拦截知乎品牌提问广告 URL-REGEX,^https?:\/\/api\.zhihu\.com\/brand\/question\/\d+/card\?,REJECT URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\?,REJECT diff --git a/script/zhihu/zhihu_plus.qxrewrite b/script/zhihu/zhihu_plus.qxrewrite index 2258edac7..aa3cd7125 100644 --- a/script/zhihu/zhihu_plus.qxrewrite +++ b/script/zhihu/zhihu_plus.qxrewrite @@ -30,8 +30,6 @@ URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\? url reject-di ^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations url reject-dict # 知乎其他广告拦截 ^https?:\/\/api\.zhihu\.com\/(notifications\/v3\/count|v3\/package|me\/guides|drama\/living-info|ad|fringe|commercial|market\/popovers|.*featured-comment-ad) url reject-dict -# 知乎拦截部分预加载 -# ^https?:\/\/www\.zhihu\.com\/appview\/(p|v2\/answer|zvideo)\/.*entry=(preload-topstory|preload-search|preload-subscription) url reject-dict # 知乎网页版去广告 ^https?:\/\/www\.zhihu\.com\/api\/v4/(questions|anwsers)\/\d+/related-readings url reject-dict ^https?:\/\/www\.zhihu\.com\/api\/v4\/hot_recommendation url reject-dict diff --git a/script/zhihu/zhihu_remove_ads.list b/script/zhihu/zhihu_remove_ads.list index 2fd52d8d1..573bcfb6c 100644 --- a/script/zhihu/zhihu_remove_ads.list +++ b/script/zhihu/zhihu_remove_ads.list @@ -12,8 +12,6 @@ URL-REGEX,^https?:\/\/api\.zhihu\.com\/brand\/question\/\d+/card\?,REJECT URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\?,REJECT # 拦截知乎回答下的广告 URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations,REJECT -# 知乎拦截部分预加载 -URL-REGEX,^https?:\/\/www\.zhihu\.com\/appview\/(p|v2\/answer|zvideo)\/.*entry=(preload-topstory|preload-search|preload-subscription),REJECT # 知乎网页版去广告 URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4/(questions|anwsers)\/\d+/related-readings,REJECT-TINYGIF URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4\/hot_recommendation,REJECT-TINYGIF