11#!name=哲也同学
2- #!desc=人在蒙古,刚下航母
2+ #!desc=人在蒙古,刚下航母\n需手动在本地分流规则添加以下内容(优先级问题):\nIP-CIDR,103.41.167.237/32,REJECT,no-resolve\nIP-CIDR,118.89.204.198/32,REJECT,no-resolve\nIP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT,no-resolve 
33#!openUrl=https://github.com/blackmatrix7/ios_rule_script
44#!author=blackmatrix7
55#!homepage=https://github.com/blackmatrix7/ios_rule_script
6- #!icon=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zheye/zheye.png
6+ #!icon=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/ master/script/zheye/zheye.png
77
88[Rule]
9- # 拦截开屏广告
10- URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\?,REJECT
11- URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/real_time_launch_v2\?,REJECT
12- # 拦截品牌提问广告
13- URL-REGEX,^https?:\/\/api\.zhihu\.com\/brand\/question\/\d+/card\?,REJECT
14- URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\?,REJECT
15- # 其他拦截不影响使用的域名
9+ # 拦截HTTP DNS
10+ IP-CIDR,103.41.167.237/32,REJECT,no-resolve
11+ IP-CIDR,118.89.204.198/32,REJECT,no-resolve
12+ IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT,no-resolve
13+ # 屏蔽 - 开屏广告
14+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api,REJECT
15+ # 屏蔽 - 回答下方的广告
16+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/answer/\d+/bottom-v2,REJECT
17+ # 屏蔽 - 付费回答用户营销引导
18+ URL-REGEX,^https:\/\/api\.zhihu\.com\/guide_center\/strategy,REJECT
19+ # 屏蔽 - 会员页浮动广告
20+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/bazaar\/float_window,REJECT
21+ # 屏蔽 - 数据上报
22+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/metrics\/report,REJECT
23+ # 屏蔽 - 疑似通知
24+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/settings\/new\/notification,REJECT
25+ # 屏蔽 - 会员相关广告
26+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/bazaar\/vip_tab\/header,REJECT
27+ # 屏蔽 - 消息通知角标
28+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count),REJECT-DICT
29+ # 屏蔽 - 推荐页顶部广告
30+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/root\/window,REJECT-DICT
31+ # 屏蔽 - 应用内弹窗
32+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/me\/guides,REJECT-DICT
33+ # 去除 - 关注页最常访问
34+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/moments\/recent,REJECT-DICT
35+ # 屏蔽 - 推荐页顶部广告
36+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/api\/v4\/ecom_data\/config,REJECT-DICT
37+ # 屏蔽 - 推荐页内容更新红点
38+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config,REJECT-DICT
39+ # 屏蔽 - 部分推荐页Tab的Banner
40+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/content-distribution-core\/sections\/,REJECT-DICT
41+ # 拦截 - 不影响使用的请求
42+ URL-REGEX,^https?:\/\/api\.zhihu\.com\/message-push\/event,REJECT
43+ # 拦截 - 不影响使用的域名
1644DOMAIN,mqtt.zhihu.com,REJECT
1745DOMAIN,sugar.zhihu.com,REJECT
1846DOMAIN,crash2.zhihu.com,REJECT
1947DOMAIN,appcloud.zhihu.com,REJECT
2048DOMAIN,appcloud2.in.zhihu.com,REJECT
21- 
22- [Rewrite]
23- ^https?:\/\/118\.89\.204\.198 - reject-dict
24- ^https?:\/\/103\.41\.167\.237 - reject-dict
25- ^https?:\/\/2402:4e00:1200:ed00:0:9089:6dac:96b6 - reject-dict
26- # 屏蔽下发的配置,如皮肤等
27- ^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject-dict
28- # 屏蔽我的页面开通会员的卡片
29- # ^https?:\/\/api\.zhihu\.com\/unlimited\/go\/my_card - reject-dict
30- # 去除底部标签页关注人角标
31- ^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 - reject-dict
32- # 去除消息通知角标
33- ^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count) - reject-dict
34- # 拦截回答下的卡片广告
35- ^https?:\/\/www\.zhihu\.com\/api\/v\d\/answers\/\d+\/recommendations - reject-dict
36- # 拦截应用内弹窗
37- ^https?:\/\/api\.zhihu\.com\/me\/guides - reject-dict
38- # 去除关注页最常访问
39- ^https?:\/\/api\.zhihu\.com\/moments\/recent - reject-dict
40- # 拦截推荐页顶部广告
41- ^https?:\/\/api\.zhihu\.com\/api\/v4\/ecom_data\/config - reject-dict
42- # 底栏加号的广告
43- ^https?:\/\/api\.zhihu\.com\/content-distribution-core\/bubble\/common\/settings - reject-dict
44- # 推荐页搜索栏左侧图标
45- ^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/current_reading - reject-dict
46- # 疑似推荐页内容更新红点
47- ^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config - reject-dict
48- # 去除回答页的相关搜索
49- ^https?:\/\/www\.zhihu\.com\/api\/v\d+\/search\/related_queries\/answer - reject-dict
50- # 暂不清楚作用
51- ^https?:\/\/api\.zhihu\.com\/commercial_api\/banners_v3\/app_topstory_banner - reject-dict
52- ^https?:\/\/api\.zhihu\.com\/ad-style-service\/request - reject-dict
49+ DOMAIN,duga.zhihu.com,REJECT
50+ DOMAIN,apm.zhihu.com,REJECT
51+ DOMAIN,zxid-m.mobileservice.cn,REJECT
5352
5453[Script]
5554# 获取用户信息 - 隔离用户数据,开启本地会员等
5655http-response ^https?:\/\/api\.zhihu\.com\/people\/ requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_处理用户信息
5756
5857# 关键词屏蔽 - 解锁本地的关键词屏蔽功能,需要开启本地VIP
59- http-request ^https?:\/\/api\.zhihu\.com\/feed-root\/block script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_解锁关键词屏蔽
58+ http-request ^https?:\/\/api\.zhihu\.com\/feed-root\/block requires-body=1, script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_解锁关键词屏蔽
6059
6160# 优化软件配置 - 优化下发的配置文件来实现某些效果
62- http-response ^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_优化软件配置1
63- http-response ^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_优化软件配置2
64- http-response ^https?:\/\/api\.zhihu\.com\/feed\/render\/tab\/config requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_优化软件配置3
65- 
66- # 用户信息 - 修改用户盐值
67- http-response ^https?:\/\/api\.zhihu\.com\/user-credit\/basis requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_修改用户盐值
68- 
69- # 关注页 - 内容优化及屏蔽转发的黑名单用户想法
70- http-response ^https?:\/\/api\.zhihu\.com\/moments_v3\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_关注列表优化
61+ http-response ^https?:\/\/api\.zhihu\.com\/root\/tab\/v2 requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_优化推荐标签页
7162
7263# 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目
73- http-response ^https:\/\/api\.zhihu\.com\/topstory\/recommend requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_推荐页优化
74- 
75- # 黑名单页 - 同步黑名单数据
76- http-response ^https?:\/\/api\.zhihu\.com\/settings\/blocked_users requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_同步黑名单
64+ http-response ^https:\/\/(api|web-render)\.zhihu\.com\/topstory\/recommend requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_推荐页优化
7765
78- # 问题的回答列表  - 移除黑名单用户的回答、去除广告 
79- http-response ^https? :\/\/api\.zhihu\.com\/(v4\/)? questions\/\d+ requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答列表优化
66+ # 回答列表  - 移除黑名单用户的回答及去除广告 
67+ http-response ^https:\/\/api\.zhihu\.com\/questions\/\d+\/feeds?  requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答列表优化
8068
8169# 回答信息流 - 移除黑名单用户的回答、去除广告
82- ^https?:\/\/api\.zhihu\.com\/next-(data|bff|render) requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答信息流优化
83- 
84- # 回答页底部评论摘要 - 移除黑名单用户发表的评论
85- http-response ^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_评论摘要优化
86- 
87- # 评论页及子页面 - 去除黑名单用户发表的评论
88- http-response ^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_评论优化
70+ http-response ^https?:\/\/api\.zhihu\.com\/next-render requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答信息流优化
8971
9072# 消息页 - 折叠官方消息、屏蔽营销消息
9173http-response ^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message) requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_消息优化
9274
93- # 回答页  - 内容优化,付费、营销、推广内容文首提醒 
94- http-response ^https?:\/\/www \.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))?  requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答内容优化 
75+ # 评论页  - 去除黑名单用户发表的评论 
76+ http-response ^https?:\/\/api \.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments?  requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_评论优化 
9577
96- # 回答页 - 屏蔽下翻出现的黑名单用户的回答 
97- http-response ^https? :\/\/api\.zhihu\.com\/next\?  requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答翻页优化 
78+ # 回答页 - 移除相关问题推荐 
79+ http-response ^https:\/\/(page-info| api) \.zhihu\.com\/answers\/v2\/\d+  requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答页广告移除 
9880
99- # 文章页 - 去除底部广告
100- http-response ^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_文章优化
81+ # 文章页 - 移除相关问题推荐
82+ http-response ^https:\/\/api\.zhihu\.com\/articles\/v\d\/\d+ requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_文章页广告移除
83+ 
84+ # 关注页 - 屏蔽黑名单用户
85+ http-response ^https?:\/\/api\.zhihu\.com\/moments_v3\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_关注列表优化
10186
10287# 热榜页 - 去除广告
103- http-response ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists? (\?|\/) requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_热榜优化
88+ http-response ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists(\?|\/) requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_热榜优化
10489
10590# 搜索页 - 去除预置广告
10691http-response ^https?:\/\/api\.zhihu\.com\/search\/preset_words\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_预置关键词优化
10792
93+ # 搜索页 - 猜你想搜去广告
94+ http-response ^https?:\/\/api\.zhihu\.com\/search\/recommend_query requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_猜你想搜去广告
95+ 
96+ # 黑名单页 - 同步黑名单数据
97+ http-response ^https:\/\/api\.zhihu\.com\/settings\/blocked_users requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_同步黑名单
98+ 
99+ # 回答页底部评论摘要 - 移除黑名单用户发表的评论
100+ http-response ^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_评论摘要优化
101+ 
108102[MITM]
109- hostname = 118.89.204.198,103.41.167.237,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 
103+ hostname = www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com,m-cloud .zhihu.com,page-info .zhihu.com,web-render.zhihu.com 
0 commit comments