New version

This commit is contained in:
blackmatrix7
2022-06-04 17:46:59 +08:00
parent e7aba22ebf
commit e54156e2f1
6687 changed files with 2936763 additions and 1400058 deletions

View File

@ -0,0 +1,87 @@
# 知乎助手Plus
## 前言
![](https://shields.io/badge/-移除重复规则-ff69b4) ![](https://shields.io/badge/-MITM--HOSTNAME合并-brightgreen)
本项目的知乎助手Plus规则由《RULE GENERATOR 规则生成器》自动生成。
所有数据均收集自互联网公开信息,不代表我们支持或使用这些服务。
请通过【中华人民共和国 People's Republic of China】合法的互联网出入口信道访问规则中的相关服务并确保在使用过程中符合相关法律法规。
## 规则说明
知乎助手Shadowrocket与Stash由规则生成器转换。
详细的使用配置,请见 https://github.com/blackmatrix7/ios_rule_script/tree/master/script/zhihu
## 规则统计
最后更新时间2022-06-23 17:34:08
各类型规则统计:
| 类型 | 数量(条) |
| ---- | ---- |
| DOMAIN | 4 |
| IP-CIDR | 2 |
| URL-REGEX | 8 |
| USER-AGENT | 1 |
| HTTP-REQUEST-SCRIPT | 1 |
| HTTP-RESPONSE-SCRIPT | 11 |
| REJECT | 14 |
| MITM | 8 |
| TOTAL | 49 |
## Shadowrocket
#### 规则链接
**MASTER分支 (每日更新)**
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Shadowrocket/ZhihuAssistant/ZhihuAssistantPlus/zhihu_plus.sgmodule
**MASTER分支 CDN (每日更新)**
https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rewrite/Shadowrocket/ZhihuAssistant/ZhihuAssistantPlus/zhihu_plus.sgmodule
**MASTER分支 GHProxy (每日更新)**
https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Shadowrocket/ZhihuAssistant/ZhihuAssistantPlus/zhihu_plus.sgmodule
**RELEASE分支 (不定时更新)**
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/release/rewrite/Shadowrocket/ZhihuAssistant/ZhihuAssistantPlus/zhihu_plus.sgmodule
**RELEASE分支CDN (不定时更新)**
https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@release/rewrite/Shadowrocket/ZhihuAssistant/ZhihuAssistantPlus/zhihu_plus.sgmodule
**RELEASE分支 GHProxy (不定时更新)**
https://ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/release/rewrite/Shadowrocket/ZhihuAssistant/ZhihuAssistantPlus/zhihu_plus.sgmodule
## 子规则
当前分流规则,未包含其他子规则。
## 数据来源
《知乎助手Plus》的数据来自以下链接如与本项目的《知乎助手Plus》规则混合使用可能造成部分重写重复。
- https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.lnplugin
- https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_remove_ads.list
感谢以上规则作者的辛勤付出(排名不分先后)。
## 最后
### 感谢
[@Tartarus2014](https://github.com/Tartarus2014) [@chenyiping1995](https://github.com/chenyiping1995) [@vhdj](https://github.com/vhdj)**
提供规则数据源及改进建议。
### 其他
请不要对外宣传本项目。

View File

@ -0,0 +1,64 @@
#!name=ZhihuAssistantPlus
#!desc=最后更新时间 2022-06-23 17:34:08
#!author=blackmatrix7
#!repo=https://github.com/blackmatrix7/ios_rule_script
#!domain=4
#!ip-cidr=2
#!url-regex=8
#!user-agent=1
#!http-request-script=1
#!http-response-script=11
#!reject=14
#!mitm=8
#!total=49
[Rule]
DOMAIN,118.89.204.198,REJECT
DOMAIN,appcloud2.in.zhihu.com,REJECT
DOMAIN,mqtt.zhihu.com,REJECT
DOMAIN,sugar.zhihu.com,REJECT
IP-CIDR,118.89.204.198/32,REJECT-DROP,no-resolve
IP-CIDR,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT-DROP,no-resolve
URL-REGEX,^https?:\/\/api\.zhihu\.com\/brand\/question\/\d+/card\?,REJECT
URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\?,REJECT
URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4/(questions|anwsers)\/\d+/related-readings,REJECT-TINYGIF
URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations,REJECT
URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v4\/hot_recommendation,REJECT-TINYGIF
URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\?,REJECT
URL-REGEX,^https?:\/\/www\.zhihu\.com\/commercial_api\/banners_v3\/mobile_banner,REJECT-TINYGIF
URL-REGEX,^https?:\/\/zhuanlan\.zhihu\.com\/api\/articles\/\d+\/recommendation,REJECT-TINYGIF
USER-AGENT,AVOS*,REJECT
[URL Rewrite]
^https?:\/\/api\.zhihu\.com/moments/hybrid\? - reject-dict
^https?:\/\/api\.zhihu\.com\/(notifications\/v3\/count|v3\/package|me\/guides|drama\/living-info|ad|fringe|commercial|market\/popovers|search\/(top|tab)|.*featured-comment-ad|appview\/api\/v\d\/answers\/\d+\/recommendations) - reject-dict
^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject-200
^https?:\/\/api\.zhihu\.com\/brand\/question\/\d+/card\? - reject-dict
^https?:\/\/api\.zhihu\.com\/moments\/recent - reject-dict
^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 - reject-dict
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card - reject-200
^https?:\/\/www\.zhihu\.com\/api\/v4/(questions|anwsers)\/\d+/related-readings - reject-dict
^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations - reject-dict
^https?:\/\/www\.zhihu\.com\/api\/v4\/hot_recommendation - reject-dict
^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\? - reject-dict
^https?:\/\/www\.zhihu\.com\/appview\/(p|v2\/answer|zvideo)\/.*entry=(preload-topstory|preload-search|preload-subscription) - reject
^https?:\/\/www\.zhihu\.com\/commercial_api\/banners_v3\/mobile_banner - reject-dict
^https?:\/\/zhuanlan\.zhihu\.com\/api\/articles\/\d+\/recommendation - reject-dict
[Script]
知乎_屏蔽关键字解锁 = type=http-request,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/feed-root\/block,requires-body=1
知乎_优化软件配置 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config,requires-body=1
知乎_信息流去广告及黑名单增强 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=)(?!\/people),requires-body=1
知乎_回答内容优化 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/www\.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))?,requires-body=1
知乎_回答列表去广告 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/v4\/questions,requires-body=1
知乎_处理用户信息 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/people,requires-body=1
知乎_官方消息去广告 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message\?|timeline\/entry\/system_message),requires-body=1
知乎_热搜去广告 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items,requires-body=1
知乎_热榜去广告 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/),requires-body=1
知乎_获取黑名单 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/settings\/blocked_users,requires-body=1
知乎_评论去广告 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments?,requires-body=1
知乎_预置关键词去广告 = type=http-response,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,pattern=^https?:\/\/api\.zhihu\.com\/search\/preset_words\?,requires-body=1
[MITM]
hostname = %APPEND% 103.41.167.226,103.41.167.234,103.41.167.235,103.41.167.236,api.zhihu.com,appcloud2.zhihu.com,www.zhihu.com,zhuanlan.zhihu.com