diff --git a/script/zhihu/README.md b/script/zhihu/README.md index d62f3e246b6..4668fd36ba3 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 ba071fb977e..0e4ac4ff127 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 d2bf28ae13c..6d104b362ec 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 2258edac71c..aa3cd7125c8 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 2fd52d8d163..573bcfb6c65 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