mirror of
https://github.com/blackmatrix7/ios_rule_script.git
synced 2024-12-25 00:29:14 +08:00
之乎者也
This commit is contained in:
parent
d7efa04a92
commit
c682006d2b
36
script/zheye/README.md
Normal file
36
script/zheye/README.md
Normal file
@ -0,0 +1,36 @@
|
||||
# 哲也同学
|
||||
|
||||
## 安装说明
|
||||
|
||||
### Surge
|
||||
|
||||
模块
|
||||
|
||||
```shell
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.sgmodule
|
||||
```
|
||||
|
||||
### Quantumult X
|
||||
|
||||
重写文件
|
||||
|
||||
```shell
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.qxrewrite
|
||||
```
|
||||
|
||||
### Loon
|
||||
|
||||
插件
|
||||
|
||||
```shell
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.lnplugin
|
||||
```
|
||||
|
||||
### Stash
|
||||
|
||||
覆写
|
||||
|
||||
```shell
|
||||
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.stoverride
|
||||
```
|
||||
|
1210
script/zheye/zheye.js
Normal file
1210
script/zheye/zheye.js
Normal file
File diff suppressed because one or more lines are too long
92
script/zheye/zheye.lnplugin
Normal file
92
script/zheye/zheye.lnplugin
Normal file
@ -0,0 +1,92 @@
|
||||
#!name= 哲也同学
|
||||
#!desc= 哲也同学,你的知乎小助手
|
||||
#!openUrl= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!author= blackmatrix7
|
||||
#!homepage= https://github.com/blackmatrix7/ios_rule_script
|
||||
#!icon= https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.png
|
||||
|
||||
[Rule]
|
||||
# 拦截开屏广告
|
||||
URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\?,REJECT
|
||||
URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/real_time_launch_v2\?,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
|
||||
# 我的页面 - 屏蔽开通盐选会员的卡片
|
||||
URL-REGEX,^https?:\/\/api\.zhihu\.com\/unlimited\/go\/my_card,REJECT
|
||||
# 其他拦截不影响使用的域名
|
||||
DOMAIN,mqtt.zhihu.com,REJECT
|
||||
DOMAIN,sugar.zhihu.com,REJECT
|
||||
DOMAIN,crash2.zhihu.com,REJECT
|
||||
DOMAIN,appcloud.zhihu.com,REJECT
|
||||
DOMAIN,appcloud2.in.zhihu.com,REJECT
|
||||
|
||||
[URL Rewrite]
|
||||
# 拦截DNS解析
|
||||
^https?:\/\/118\.89\.204\.198 - reject-dict
|
||||
^https?:\/\/2402:4e00:1200:ed00:0:9089:6dac:96b6 - reject-dict
|
||||
# 屏蔽下发的配置,如皮肤等
|
||||
^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject-dict
|
||||
# 去除底部标签页关注人角标
|
||||
^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 - reject-dict
|
||||
# 去除消息通知角标
|
||||
^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count) - reject-dict
|
||||
# 拦截回答下的卡片广告
|
||||
^https?:\/\/www\.zhihu\.com\/api\/v\d\/answers\/\d+\/recommendations - reject-dict
|
||||
# 拦截应用内弹窗
|
||||
^https?:\/\/api\.zhihu\.com\/me\/guides - reject-dict
|
||||
# 去除关注页最常访问
|
||||
^https?:\/\/api\.zhihu\.com\/moments\/recent - reject-dict
|
||||
|
||||
[Script]
|
||||
# 获取用户信息 - 隔离用户数据,开启本地盐选会员等
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/people\/ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_处理用户信息
|
||||
|
||||
# 解锁本地的关键词屏蔽功能,需要开启本地VIP
|
||||
http-request ^https?:\/\/api\.zhihu\.com\/feed-root\/block requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_解锁关键词屏蔽
|
||||
|
||||
# 优化知乎软件配置 - 优化下发的配置文件来实现某些效果
|
||||
http-response ^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_优化软件配置1
|
||||
http-response ^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_优化软件配置2
|
||||
|
||||
# 用户信息 - 修改用户盐值
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/user-credit\/basis requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_修改用户盐值
|
||||
|
||||
# 关注页 - 内容优化及屏蔽转发的黑名单用户想法
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/moments_v3\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_关注列表优化
|
||||
|
||||
# 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目
|
||||
http-response ^https:\/\/api\.zhihu\.com\/topstory\/recommend\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_推荐页优化
|
||||
|
||||
# 黑名单页 - 同步黑名单数据
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/settings\/blocked_users requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_同步黑名单
|
||||
|
||||
# 问题的回答列表 - 移除黑名单用户的回答、去除广告
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/(v4\/)?questions\/\d+ requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_回答列表优化
|
||||
|
||||
# 回答页底部评论摘要 - 移除黑名单用户发表的评论
|
||||
http-response ^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_评论摘要优化
|
||||
|
||||
# 评论页及子页面 - 去除黑名单用户发表的评论
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_评论优化
|
||||
|
||||
# 消息页 - 折叠官方消息、屏蔽营销消息
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_消息优化
|
||||
|
||||
# 回答页 - 内容优化,付费、营销、推广内容文首提醒
|
||||
http-response ^https?:\/\/www\.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_回答内容优化
|
||||
|
||||
# 回答页 - 屏蔽下翻出现的黑名单用户的回答
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/next\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_回答翻页优化
|
||||
|
||||
# 文章页 - 去除底部广告
|
||||
http-response ^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_文章优化
|
||||
|
||||
# 热榜页 - 去除广告
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_热榜优化
|
||||
|
||||
# 搜索页 - 去除预置广告
|
||||
http-response ^https?:\/\/api\.zhihu\.com\/search\/preset_words\? requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js,tag=知乎_预置关键词优化
|
||||
|
||||
[MITM]
|
||||
hostname = 118.89.204.198,2402:4e00:1200:ed00:0:9089:6dac:96b6,www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com,appcloud2.zhihu.com,m-cloud.zhihu.com,103.41.167.236,103.41.167.234,103.41.167.235,103.41.167.226
|
BIN
script/zheye/zheye.png
Normal file
BIN
script/zheye/zheye.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
86
script/zheye/zheye.qxrewrite
Normal file
86
script/zheye/zheye.qxrewrite
Normal file
@ -0,0 +1,86 @@
|
||||
# 哲也同学
|
||||
# 哲也同学,你的知乎小助手
|
||||
|
||||
# 拦截DNS解析
|
||||
^https?:\/\/118\.89\.204\.198 url reject-200
|
||||
^https?:\/\/2402:4e00:1200:ed00:0:9089:6dac:96b6 url reject-200
|
||||
|
||||
# 拦截知乎开屏广告
|
||||
^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\? url reject-dict
|
||||
^https?:\/\/api\.zhihu\.com\/commercial_api\/real_time_launch_v2\? url reject-dict
|
||||
|
||||
# 拦截品牌提问广告
|
||||
^https?:\/\/api\.zhihu\.com\/brand\/question\/\d+/card\? url reject-dict
|
||||
^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\? url reject-dict
|
||||
|
||||
# 屏蔽下发的配置,如皮肤等
|
||||
^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config url reject
|
||||
|
||||
# 去除底部标签页关注人角标
|
||||
^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 url reject-dict
|
||||
|
||||
# 去除消息通知角标
|
||||
^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count) url reject-dict
|
||||
|
||||
# 拦截回答下的卡片广告
|
||||
^https?:\/\/www\.zhihu\.com\/api\/v\d\/answers\/\d+\/recommendations url reject-dict
|
||||
|
||||
# 拦截应用内弹窗
|
||||
^https?:\/\/api\.zhihu\.com\/me\/guides url reject-dict
|
||||
|
||||
# 去除关注页最常访问
|
||||
^https?:\/\/api\.zhihu\.com\/moments\/recent url reject-dict
|
||||
|
||||
# 我的页面 - 屏蔽开通盐选会员的卡片
|
||||
^https?:\/\/api\.zhihu\.com\/unlimited\/go\/my_card url reject
|
||||
|
||||
# 获取用户信息 - 隔离用户数据,开启本地盐选会员等
|
||||
^https?:\/\/api\.zhihu\.com\/people\/ url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 解锁本地的关键词屏蔽功能,需要开启本地VIP
|
||||
^https?:\/\/api\.zhihu\.com\/feed-root\/block url script-analyze-echo-response https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 优化知乎软件配置 - 优化下发的配置文件来实现某些效果
|
||||
^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config url script-analyze-echo-response https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 用户信息 - 修改用户盐值
|
||||
^https?:\/\/api\.zhihu\.com\/user-credit\/basis url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 关注页 - 内容优化及屏蔽转发的黑名单用户想法
|
||||
^https?:\/\/api\.zhihu\.com\/moments_v3\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目
|
||||
^https:\/\/api\.zhihu\.com\/topstory\/recommend\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 黑名单页 - 同步黑名单数据
|
||||
^https?:\/\/api\.zhihu\.com\/settings\/blocked_users url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 问题的回答列表 - 移除黑名单用户的回答、去除广告
|
||||
^https?:\/\/api\.zhihu\.com\/(v4\/)?questions\/\d+ url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 回答页底部评论摘要 - 移除黑名单用户发表的评论
|
||||
^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 评论页及子页面 - 去除黑名单用户发表的评论
|
||||
^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 消息页 - 折叠官方消息、屏蔽营销消息
|
||||
^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 回答页 - 内容优化,付费、营销、推广内容文首提醒
|
||||
^https?:\/\/www\.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 回答页 - 屏蔽下翻出现的黑名单用户的回答
|
||||
^https?:\/\/api\.zhihu\.com\/next\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 文章页 - 去除底部广告
|
||||
^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 热榜页 - 去除广告
|
||||
^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 搜索页 - 去除预置广告
|
||||
^https?:\/\/api\.zhihu\.com\/search\/preset_words\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
hostname = 118.89.204.198,2402:4e00:1200:ed00:0:9089:6dac:96b6,www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com,appcloud2.zhihu.com,m-cloud.zhihu.com,103.41.167.236,103.41.167.234,103.41.167.235,103.41.167.226
|
89
script/zheye/zheye.sgmodule
Normal file
89
script/zheye/zheye.sgmodule
Normal file
@ -0,0 +1,89 @@
|
||||
#!name=哲也同学
|
||||
#!desc=哲也同学,你的知乎小助手
|
||||
|
||||
[Rule]
|
||||
# 拦截开屏广告
|
||||
URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\?,REJECT
|
||||
URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/real_time_launch_v2\?,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
|
||||
# 我的页面 - 屏蔽开通盐选会员的卡片
|
||||
URL-REGEX,^https?:\/\/api\.zhihu\.com\/unlimited\/go\/my_card,REJECT
|
||||
# 其他拦截不影响使用的域名
|
||||
DOMAIN,mqtt.zhihu.com,REJECT
|
||||
DOMAIN,sugar.zhihu.com,REJECT
|
||||
DOMAIN,crash2.zhihu.com,REJECT
|
||||
DOMAIN,appcloud.zhihu.com,REJECT
|
||||
DOMAIN,appcloud2.in.zhihu.com,REJECT
|
||||
|
||||
|
||||
[Map Local]
|
||||
# 拦截DNS解析
|
||||
^https?:\/\/118\.89\.204\.198 data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
|
||||
^https?:\/\/2402:4e00:1200:ed00:0:9089:6dac:96b6 data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
|
||||
# 屏蔽下发的配置,如皮肤等
|
||||
^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" header="Content-Type: application/x-protobuf"
|
||||
# 去除底部标签页关注人角标
|
||||
^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
|
||||
# 去除消息通知角标
|
||||
^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count) data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
|
||||
# 拦截回答下的卡片广告
|
||||
^https?:\/\/www\.zhihu\.com\/api\/v\d\/answers\/\d+\/recommendations data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
|
||||
# 拦截应用内弹窗
|
||||
^https?:\/\/api\.zhihu\.com\/me\/guides data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
|
||||
# 去除关注页最常访问
|
||||
^https?:\/\/api\.zhihu\.com\/moments\/recent data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
|
||||
|
||||
[Script]
|
||||
# 获取用户信息 - 隔离用户数据,开启本地盐选会员等
|
||||
知乎_处理用户信息 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/people\/,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 解锁本地的关键词屏蔽功能,需要开启本地VIP
|
||||
知乎_解锁关键词屏蔽 = type=http-request,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/feed-root\/block,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 优化知乎软件配置 - 优化下发的配置文件来实现某些效果
|
||||
知乎_优化软件配置1 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
知乎_优化软件配置2 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 用户信息 - 修改用户盐值
|
||||
知乎_修改用户盐值 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/user-credit\/basis,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 关注页 - 内容优化及屏蔽转发的黑名单用户想法
|
||||
知乎_关注列表优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/moments_v3\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目
|
||||
知乎_推荐页优化 = type=http-response,requires-body=1,max-size=0,pattern=^https:\/\/api\.zhihu\.com\/topstory\/recommend\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 黑名单页 - 同步黑名单数据
|
||||
知乎_同步黑名单 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/settings\/blocked_users,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 问题的回答列表 - 移除黑名单用户的回答、去除广告
|
||||
知乎_回答列表优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/(v4\/)?questions\/\d+,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 回答页底部评论摘要 - 移除黑名单用户发表的评论
|
||||
知乎_评论摘要优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 评论页及子页面 - 去除黑名单用户发表的评论
|
||||
知乎_评论优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 消息页 - 折叠官方消息、屏蔽营销消息
|
||||
知乎_消息优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message),script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 回答页 - 内容优化,付费、营销、推广内容文首提醒
|
||||
知乎_回答内容优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/www\.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 回答页 - 屏蔽下翻出现的黑名单用户的回答
|
||||
知乎_回答翻页优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/next\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 文章页 - 去除底部广告
|
||||
知乎_文章优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 热榜页 - 去除广告
|
||||
知乎_热榜优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists(\?|\/),script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
# 搜索页 - 去除预置广告
|
||||
知乎_预置关键词优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/search\/preset_words\?,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% 118.89.204.198,2402:4e00:1200:ed00:0:9089:6dac:96b6,www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com,appcloud2.zhihu.com,m-cloud.zhihu.com,103.41.167.236,103.41.167.234,103.41.167.235,103.41.167.226
|
183
script/zheye/zheye.stoverride
Normal file
183
script/zheye/zheye.stoverride
Normal file
@ -0,0 +1,183 @@
|
||||
name: 哲也同学
|
||||
desc: 哲也同学,你的知乎小助手
|
||||
|
||||
http:
|
||||
rewrite:
|
||||
# 拦截DNS解析
|
||||
- ^https?:\/\/118\.89\.204\.198 - reject-dict
|
||||
- ^https?:\/\/2402:4e00:1200:ed00:0:9089:6dac:96b6 - reject-dict
|
||||
# 拦截开屏广告
|
||||
- ^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\? - reject-dict
|
||||
- ^https?:\/\/api\.zhihu\.com\/commercial_api\/real_time_launch_v2\? - reject-dict
|
||||
# 拦截品牌提问广告
|
||||
- ^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\? - reject-dict
|
||||
# 我的页面 - 屏蔽开通盐选会员的卡片
|
||||
- ^https?:\/\/api\.zhihu\.com\/unlimited\/go\/my_card - reject
|
||||
# 拦截品牌提问广告
|
||||
- ^https?:\/\/api\.zhihu\.com\/brand\/question\/\d+/card\? - reject-dict
|
||||
# 屏蔽下发的配置,如皮肤等
|
||||
- ^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject-dict
|
||||
# 去除底部标签页关注人角标
|
||||
- ^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 - reject-dict
|
||||
# 去除消息通知角标
|
||||
- ^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count) - reject-dict
|
||||
# 拦截回答下的卡片广告
|
||||
- ^https?:\/\/www\.zhihu\.com\/api\/v\d\/answers\/\d+\/recommendations - reject-dict
|
||||
# 拦截应用内弹窗
|
||||
- ^https?:\/\/api\.zhihu\.com\/me\/guides - reject-dict
|
||||
# 去除关注页最常访问
|
||||
- ^https?:\/\/api\.zhihu\.com\/moments\/recent - reject-dict
|
||||
|
||||
script:
|
||||
# 获取用户信息 - 隔离用户数据,开启本地盐选会员等
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/people\/
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 解锁本地的关键词屏蔽功能,需要开启本地VIP
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/feed-root\/block
|
||||
name: zheye.js
|
||||
type: request
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 优化知乎软件配置 - 优化下发的配置文件来实现某些效果
|
||||
- match: ^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
- match: ^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 用户信息 - 修改用户盐值
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/user-credit\/basis
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 关注页 - 内容优化及屏蔽转发的黑名单用户想法
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/moments_v3\?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目
|
||||
- match: ^https:\/\/api\.zhihu\.com\/topstory\/recommend\?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 黑名单页 - 同步黑名单数据
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/settings\/blocked_users
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 问题的回答列表 - 移除黑名单用户的回答、去除广告
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/(v4\/)?questions\/\d+
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 回答页底部评论摘要 - 移除黑名单用户发表的评论
|
||||
- match: ^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 评论页及子页面 - 去除黑名单用户发表的评论
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 消息页 - 折叠官方消息、屏蔽营销消息
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message)
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 回答页 - 内容优化,付费、营销、推广内容文首提醒
|
||||
- match: ^https?:\/\/www\.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 回答页 - 屏蔽下翻出现的黑名单用户的回答
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/next\?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 文章页 - 去除底部广告
|
||||
- match: ^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 热榜页 - 去除广告
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/)
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
# 搜索页 - 去除预置广告
|
||||
- match: ^https?:\/\/api\.zhihu\.com\/search\/preset_words\?
|
||||
name: zheye.js
|
||||
type: response
|
||||
require-body: true
|
||||
timeout: 30
|
||||
argument: ''
|
||||
|
||||
mitm:
|
||||
- "api.zhihu.com"
|
||||
- "www.zhihu.com"
|
||||
- "m-cloud.zhihu.com"
|
||||
- "zhuanlan.zhihu.com"
|
||||
- "appcloud2.zhihu.com"
|
||||
- "103.41.167.226"
|
||||
- "103.41.167.234"
|
||||
- "103.41.167.235"
|
||||
- "103.41.167.236"
|
||||
- "118.89.204.198"
|
||||
- "2402:4e00:1200:ed00:0:9089:6dac:96b6"
|
||||
|
||||
script-providers:
|
||||
zheye.js:
|
||||
url: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.js
|
||||
interval: 86400
|
||||
|
Loading…
Reference in New Issue
Block a user