From e98a60f4cfc56142800f7f023d85ade649d2e77a Mon Sep 17 00:00:00 2001 From: blackmatrix7 <27717518+blackmatrix7@users.noreply.github.com> Date: Tue, 17 Jun 2025 17:08:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=93=B2=E4=B9=9F]=20=E9=80=82=E9=85=8D?= =?UTF-8?q?=E8=87=B3=E5=AE=A2=E6=88=B7=E7=AB=AF10.53.0=20(23308)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/zheye/zheye.lnplugin | 138 +++++++++--------- script/zheye/zheye.sgmodule | 118 ++++++++------- script/zheye/zheye.snippet | 124 ++++++---------- script/zheye/zheye.stoverride | 264 ++++++++++++++++------------------ 4 files changed, 288 insertions(+), 356 deletions(-) diff --git a/script/zheye/zheye.lnplugin b/script/zheye/zheye.lnplugin index a63873c41b0..98e7339fa59 100644 --- a/script/zheye/zheye.lnplugin +++ b/script/zheye/zheye.lnplugin @@ -1,109 +1,103 @@ #!name=哲也同学 -#!desc=人在蒙古,刚下航母 +#!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 #!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 +#!icon=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/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 -# 其他拦截不影响使用的域名 +# 拦截HTTP DNS +IP-CIDR,103.41.167.237/32,REJECT,no-resolve +IP-CIDR,118.89.204.198/32,REJECT,no-resolve +IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT,no-resolve +# 屏蔽 - 开屏广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api,REJECT +# 屏蔽 - 回答下方的广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/answer/\d+/bottom-v2,REJECT +# 屏蔽 - 付费回答用户营销引导 +URL-REGEX,^https:\/\/api\.zhihu\.com\/guide_center\/strategy,REJECT +# 屏蔽 - 会员页浮动广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/bazaar\/float_window,REJECT +# 屏蔽 - 数据上报 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/metrics\/report,REJECT +# 屏蔽 - 疑似通知 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/settings\/new\/notification,REJECT +# 屏蔽 - 会员相关广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/bazaar\/vip_tab\/header,REJECT +# 屏蔽 - 消息通知角标 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count),REJECT-DICT +# 屏蔽 - 推荐页顶部广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/root\/window,REJECT-DICT +# 屏蔽 - 应用内弹窗 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/me\/guides,REJECT-DICT +# 去除 - 关注页最常访问 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/moments\/recent,REJECT-DICT +# 屏蔽 - 推荐页顶部广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/api\/v4\/ecom_data\/config,REJECT-DICT +# 屏蔽 - 推荐页内容更新红点 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config,REJECT-DICT +# 屏蔽 - 部分推荐页Tab的Banner +URL-REGEX,^https?:\/\/api\.zhihu\.com\/content-distribution-core\/sections\/,REJECT-DICT +# 拦截 - 不影响使用的请求 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/message-push\/event,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 - -[Rewrite] -^https?:\/\/118\.89\.204\.198 - reject-dict -^https?:\/\/103\.41\.167\.237 - 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\/unlimited\/go\/my_card - 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 -# 拦截推荐页顶部广告 -^https?:\/\/api\.zhihu\.com\/api\/v4\/ecom_data\/config - reject-dict -# 底栏加号的广告 -^https?:\/\/api\.zhihu\.com\/content-distribution-core\/bubble\/common\/settings - reject-dict -# 推荐页搜索栏左侧图标 -^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/current_reading - reject-dict -# 疑似推荐页内容更新红点 -^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config - reject-dict -# 去除回答页的相关搜索 -^https?:\/\/www\.zhihu\.com\/api\/v\d+\/search\/related_queries\/answer - reject-dict -# 暂不清楚作用 -^https?:\/\/api\.zhihu\.com\/commercial_api\/banners_v3\/app_topstory_banner - reject-dict -^https?:\/\/api\.zhihu\.com\/ad-style-service\/request - reject-dict +DOMAIN,duga.zhihu.com,REJECT +DOMAIN,apm.zhihu.com,REJECT +DOMAIN,zxid-m.mobileservice.cn,REJECT [Script] # 获取用户信息 - 隔离用户数据,开启本地会员等 http-response ^https?:\/\/api\.zhihu\.com\/people\/ requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_处理用户信息 # 关键词屏蔽 - 解锁本地的关键词屏蔽功能,需要开启本地VIP -http-request ^https?:\/\/api\.zhihu\.com\/feed-root\/block script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_解锁关键词屏蔽 +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=哲也_解锁关键词屏蔽 # 优化软件配置 - 优化下发的配置文件来实现某些效果 -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 -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 -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 - -# 用户信息 - 修改用户盐值 -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=哲也_修改用户盐值 - -# 关注页 - 内容优化及屏蔽转发的黑名单用户想法 -http-response ^https?:\/\/api\.zhihu\.com\/moments_v3\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_关注列表优化 +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=哲也_优化推荐标签页 # 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目 -http-response ^https:\/\/api\.zhihu\.com\/topstory\/recommend requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_推荐页优化 +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=哲也_推荐页优化 -# 黑名单页 - 同步黑名单数据 -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=哲也_同步黑名单 - -# 问题的回答列表 - 移除黑名单用户的回答、去除广告 -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=哲也_回答列表优化 +# 回答列表 - 移除黑名单用户的回答及去除广告 +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=哲也_回答列表优化 # 回答信息流 - 移除黑名单用户的回答、去除广告 -^https?:\/\/api\.zhihu\.com\/next-(data|bff|render) requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答信息流优化 - -# 回答页底部评论摘要 - 移除黑名单用户发表的评论 -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=哲也_评论摘要优化 - -# 评论页及子页面 - 去除黑名单用户发表的评论 -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=哲也_评论优化 +http-response ^https?:\/\/api\.zhihu\.com\/next-render requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答信息流优化 # 消息页 - 折叠官方消息、屏蔽营销消息 http-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=哲也_消息优化 -# 回答页 - 内容优化,付费、营销、推广内容文首提醒 -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=哲也_回答内容优化 +# 评论页 - 去除黑名单用户发表的评论 +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=哲也_评论优化 -# 回答页 - 屏蔽下翻出现的黑名单用户的回答 -http-response ^https?:\/\/api\.zhihu\.com\/next\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_回答翻页优化 +# 回答页 - 移除相关问题推荐 +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=哲也_回答页广告移除 -# 文章页 - 去除底部广告 -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=哲也_文章优化 +# 文章页 - 移除相关问题推荐 +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=哲也_文章页广告移除 + +# 关注页 - 屏蔽黑名单用户 +http-response ^https?:\/\/api\.zhihu\.com\/moments_v3\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_关注列表优化 # 热榜页 - 去除广告 -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=哲也_热榜优化 +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=哲也_热榜优化 # 搜索页 - 去除预置广告 http-response ^https?:\/\/api\.zhihu\.com\/search\/preset_words\? requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js,tag=哲也_预置关键词优化 +# 搜索页 - 猜你想搜去广告 +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=哲也_猜你想搜去广告 + +# 黑名单页 - 同步黑名单数据 +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=哲也_同步黑名单 + +# 回答页底部评论摘要 - 移除黑名单用户发表的评论 +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=哲也_评论摘要优化 + [MITM] -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 +hostname = www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com,m-cloud.zhihu.com,page-info.zhihu.com,web-render.zhihu.com \ No newline at end of file diff --git a/script/zheye/zheye.sgmodule b/script/zheye/zheye.sgmodule index d7b65308615..4f7d65a394d 100644 --- a/script/zheye/zheye.sgmodule +++ b/script/zheye/zheye.sgmodule @@ -1,51 +1,54 @@ #!name=哲也同学 #!desc=分享你刚编的故事 +#!author=blackmatrix7 +#!homepage=https://github.com/blackmatrix7/ios_rule_script +#!category=blackmatrix7 [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 +# HTTP DNS +IP-CIDR,118.89.204.198/32,REJECT,no-resolve +IP-CIDR,103.41.167.237/32,REJECT,no-resolve +IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT,no-resolve # 其他拦截不影响使用的域名 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 +DOMAIN,duga.zhihu.com,REJECT +DOMAIN,apm.zhihu.com,REJECT +# 拦截开屏广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api,REJECT +# 拦截回答下方的广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/answer/\d+/bottom-v2,REJECT +# 拦截不影响使用的请求 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/message-push\/event,REJECT +# 屏蔽 - 付费回答用户营销引导 +URL-REGEX,^https:\/\/api\.zhihu\.com\/guide_center\/strategy,REJECT +# 屏蔽 - 会员页浮动广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/bazaar\/float_window,REJECT +# 屏蔽 - 数据上报 +URL-REGEX,^https?:\/\/api\.zhihu.\com\/metrics\/report,REJECT +# 屏蔽 - 疑似通知 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/settings\/new\/notification,REJECT +# 屏蔽 - 会员相关广告 +URL-REGEX,^https?:\/\/api\.zhihu\.com\/bazaar\/vip_tab\/header,REJECT [Map Local] -^https?:\/\/118\.89\.204\.198 data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" -^https?:\/\/103\.41\.167\.237 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\/unlimited\/go\/my_card data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" -# 去除底部标签页关注人角标 -^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\/(notifications\/v\d\/count) data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/blank/blank_dict.json" +# 去除推荐页顶部广告 +^https?:\/\/api\.zhihu\.com\/root\/window data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/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\/me\/guides data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/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" +^https?:\/\/api\.zhihu\.com\/moments\/recent data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/blank/blank_dict.json" # 拦截推荐页顶部广告 -^https?:\/\/api\.zhihu\.com\/api\/v4\/ecom_data\/config data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" -# 底栏加号的广告 -^https?:\/\/api\.zhihu\.com\/content-distribution-core\/bubble\/common\/settings data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" -# 推荐页搜索栏左侧图标 -^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/current_reading data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" +^https?:\/\/api\.zhihu\.com\/api\/v4\/ecom_data\/config data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/blank/blank_dict.json" # 疑似推荐页内容更新红点 -^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" -# 去除回答页的相关搜索 -^https?:\/\/www\.zhihu\.com\/api\/v\d+\/search\/related_queries\/answer data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" -# 暂不清楚作用 -^https?:\/\/api\.zhihu\.com\/commercial_api\/banners_v3\/app_topstory_banner data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" -^https?:\/\/api\.zhihu\.com\/ad-style-service\/request data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" +^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/blank/blank_dict.json" +# 部分推荐页Tab的Banner +^https?:\/\/api\.zhihu\.com\/content-distribution-core\/sections\/ data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/blank/blank_dict.json" [Script] # 获取用户信息 - 隔离用户数据,开启本地会员等 @@ -55,45 +58,31 @@ DOMAIN,appcloud2.in.zhihu.com,REJECT 哲也_解锁关键词屏蔽 = type=http-request,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/feed-root\/block,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 优化软件配置 - 优化下发的配置文件来实现某些效果 -哲也_优化软件配置1 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\?,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -哲也_优化软件配置2 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -哲也_优化软件配置3 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/feed\/render\/tab\/config,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 用户信息 - 修改用户盐值 -修改用户盐值 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/user-credit\/basis,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 关注页 - 内容优化及屏蔽转发的黑名单用户想法 -哲也_关注列表优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/moments_v3\?,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +哲也_优化推荐标签页 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/root\/tab\/v2,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目 -哲也_推荐页优化 = type=http-response,requires-body=1,max-size=0,pattern=^https:\/\/api\.zhihu\.com\/topstory\/recommend,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +哲也_推荐页优化 = type=http-response,requires-body=1,max-size=0,timeout=30,pattern=^https:\/\/(api|web-render)\.zhihu\.com\/topstory\/recommend,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -# 黑名单页 - 同步黑名单数据 -哲也_同步黑名单 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/settings\/blocked_users,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 问题的回答列表 - 移除黑名单用户的回答、去除广告 -哲也_回答列表优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/(v4\/)?questions\/\d+,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 回答列表 - 移除黑名单用户的回答、去除广告 +哲也_回答列表优化 = type=http-response,requires-body=1,max-size=0,pattern=^https:\/\/api\.zhihu\.com\/questions\/\d+\/feeds?,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 回答信息流 - 移除黑名单用户的回答、去除广告 -哲也_回答信息流优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/next-(data|bff|render),script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.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://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.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://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +哲也_回答信息流优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/next-render,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.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://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.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://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.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://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -# 回答页 - 屏蔽下翻出现的黑名单用户的回答 -哲也_回答翻页优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/next\?,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 回答页 - 移除相关问题推荐 +哲也_回答页广告移除 = type=http-response,requires-body=1,max-size=0,pattern=^https:\/\/(page-info|api)\.zhihu\.com\/answers\/v2\/\d+,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -# 文章页 - 去除底部广告 -哲也_文章优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\?,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 文章页 - 移除相关问题推荐 +哲也_文章页广告移除 = type=http-response,requires-body=1,max-size=0,pattern=^https:\/\/api\.zhihu\.com\/articles\/v\d\/\d+,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js + +# 关注页 - 屏蔽黑名单用户 +哲也_关注列表优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/moments_v3\?,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 热榜页 - 去除广告 哲也_热榜优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists(\?|\/),script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js @@ -101,5 +90,14 @@ DOMAIN,appcloud2.in.zhihu.com,REJECT # 搜索页 - 去除预置广告 哲也_预置关键词优化 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/search\/preset_words\?,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 搜索页 - 猜你想搜去广告 +哲也_猜你想搜去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/search\/recommend_query,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js + +# 黑名单页 - 同步黑名单数据 +哲也_同步黑名单 = type=http-response,requires-body=1,max-size=0,pattern=^https:\/\/api\.zhihu\.com\/settings\/blocked_users,script-path=https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.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://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js + [MITM] -hostname = %APPEND% 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 \ No newline at end of file +hostname = %APPEND% www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com,m-cloud.zhihu.com,page-info.zhihu.com,web-render.zhihu.com \ No newline at end of file diff --git a/script/zheye/zheye.snippet b/script/zheye/zheye.snippet index 994e2cfeb9c..7327b627865 100644 --- a/script/zheye/zheye.snippet +++ b/script/zheye/zheye.snippet @@ -5,105 +5,69 @@ ^https?:\/\/103\.41\.167\.237 url reject-dict ^https?:\/\/2402:4e00:1200:ed00:0:9089:6dac:96b6 url reject-200 -# 屏蔽下发的配置,如皮肤等 -^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config url reject - -# 屏蔽我的页面开通会员的卡片 -# ^https?:\/\/api\.zhihu\.com\/unlimited\/go\/my_card url reject - # 拦截开屏广告 -^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\/moments\/tab_v2 url reject-dict +^https?:\/\/api\.zhihu\.com\/commercial_api url reject-dict +# 拦截回答下方的广告 +^https?:\/\/api\.zhihu\.com\/commercial_api\/answer/\d+/bottom-v2 url reject-dict +# 拦截不影响使用的请求 +^https?:\/\/api\.zhihu\.com\/message-push\/event url reject-dict +# 屏蔽 - 付费回答用户营销引导 +^https?:\/\/api\.zhihu\.com\/guide_center\/strategy url reject-dict +# 屏蔽 - 会员页浮动广告 +^https?:\/\/api\.zhihu\.com\/bazaar\/float_window url reject-dict +# 屏蔽 - 数据上报 +^https?:\/\/api\.zhihu\.com\/metrics\/report url reject-dict +# 屏蔽 - 疑似通知 +^https?:\/\/api\.zhihu\.com\/settings\/new\/notification url reject-dict +# 屏蔽 - 会员相关广告 +^https?:\/\/api\.zhihu\.com\/bazaar\/vip_tab\/header 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\/root\/window 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\/api\/v4\/ecom_data\/config url reject-dict - -# 底栏加号的广告 -^https?:\/\/api\.zhihu\.com\/content-distribution-core\/bubble\/common\/settings url reject-dict - -# 推荐页搜索栏左侧图标 -^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/current_reading url reject-dict - # 疑似推荐页内容更新红点 ^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config url reject-dict - -# 去除回答页的相关搜索 -^https?:\/\/www\.zhihu\.com\/api\/v\d+\/search\/related_queries\/answer url reject-dict - -# 暂不清楚作用 -^https?:\/\/api\.zhihu\.com\/commercial_api\/banners_v3\/app_topstory_banner url reject-dict -^https?:\/\/api\.zhihu\.com\/ad-style-service\/request url reject +# 部分推荐页Tab的Banner +^https?:\/\/api\.zhihu\.com\/content-distribution-core\/sections\/ url reject-dict # 获取用户信息 - 隔离用户数据,开启本地会员等 ^https?:\/\/api\.zhihu\.com\/people\/ url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - # 关键词屏蔽 - 解锁本地的关键词屏蔽功能,需要开启本地VIP -^https?:\/\/api\.zhihu\.com\/feed-root\/block url script-analyze-echo-response https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - +^https?:\/\/api\.zhihu\.com\/feed-root\/block url script-request-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 优化软件配置 - 优化下发的配置文件来实现某些效果 -^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config url script-analyze-echo-response https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -^https?:\/\/api\.zhihu\.com\/feed\/render\/tab\/config url script-analyze-echo-response https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 用户信息 - 修改用户盐值 -^https?:\/\/api\.zhihu\.com\/user-credit\/basis url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 关注页 - 内容优化及屏蔽转发的黑名单用户想法 -^https?:\/\/api\.zhihu\.com\/moments_v3\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - +^https?:\/\/api\.zhihu\.com\/root\/tab\/v2 url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目 -^https:\/\/api\.zhihu\.com\/topstory\/recommend url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 黑名单页 - 同步黑名单数据 -^https?:\/\/api\.zhihu\.com\/settings\/blocked_users url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 问题的回答列表 - 移除黑名单用户的回答、去除广告 -^https?:\/\/api\.zhihu\.com\/(v4\/)?questions\/\d+ url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - +^https:\/\/(api|web-render)\.zhihu\.com\/topstory\/recommend url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 回答列表 - 移除黑名单用户的回答、去除广告 +^https:\/\/api\.zhihu\.com\/questions\/\d+\/feeds? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 回答信息流 - 移除黑名单用户的回答、去除广告 -^https?:\/\/api\.zhihu\.com\/next-(data|bff|render) url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - +^https?:\/\/api\.zhihu\.com\/next-render url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 消息页 - 折叠官方消息、屏蔽营销消息 +^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message) url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 评论页 - 去除黑名单用户发表的评论 +^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 回答页 - 移除相关问题推荐 +^https:\/\/(page-info|api)\.zhihu\.com\/answers\/v2\/\d+ url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 文章页 - 移除相关问题推�� +^https:\/\/api\.zhihu\.com\/articles\/v\d\/\d+ url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 关注页 - 屏蔽黑名单用户 +^https?:\/\/api\.zhihu\.com\/moments_v3\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 热榜页 - 去除广告 +^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists(\?|\/) url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 搜索页 - 去除预置广告 +^https?:\/\/api\.zhihu\.com\/search\/preset_words\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 搜索页 - 猜你想搜去广告 +^https?:\/\/api\.zhihu\.com\/search\/recommend_query url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js +# 黑名单页 - 同步黑名单数据 +^https:\/\/api\.zhihu\.com\/settings\/blocked_users url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js # 回答页底部评论摘要 - 移除黑名单用户发表的评论 ^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js -# 评论页及子页面 - 去除黑名单用户发表的评论 -^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 消息页 - 折叠官方消息、屏蔽营销消息 -^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message) url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 回答页 - 内容优化,付费、营销、推广内容文首提醒 -^https?:\/\/www\.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 回答页 - 屏蔽下翻出现的黑名单用户的回答 -^https?:\/\/api\.zhihu\.com\/next\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 文章页 - 去除底部广告 -^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 热榜页 - 去除广告 -^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -# 搜索页 - 去除预置广告 -^https?:\/\/api\.zhihu\.com\/search\/preset_words\? url script-response-body https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - -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 \ No newline at end of file +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,m-cloud.zhihu.com,page-info.zhihu.com,web-render.zhihu.com \ No newline at end of file diff --git a/script/zheye/zheye.stoverride b/script/zheye/zheye.stoverride index 4162a193fdb..cea79d1ff22 100644 --- a/script/zheye/zheye.stoverride +++ b/script/zheye/zheye.stoverride @@ -1,211 +1,187 @@ -name: 哲也同学 -desc: 人在航母,刚下蒙古 +name: '哲也同学' +desc: 分享你刚编的故事 +author: 'blackmatrix7' +openUrl: 'https://apps.apple.com/cn/app/%E7%9F%A5%E4%B9%8E/id432274380' +homepage: 'https://github.com/blackmatrix7/ios_rule_script' +icon: https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/refs/heads/master/script/zheye/zheye.png +category: 'blackmatrix7' +date: '2025-06-17 18:03:03' +version: '3.0.0.0' + +rules: + # 阻止HTTP DNS + - DOMAIN,118.89.204.198,REJECT + - DOMAIN,103.41.167.237,REJECT + - DOMAIN,2402:4e00:1200:ed00:0:9089:6dac:96b6,REJECT + - IP-CIDR,118.89.204.198/32,REJECT,no-resolve + - IP-CIDR,103.41.167.237/32,REJECT,no-resolve + - IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT,no-resolve + # 其他拦截不影响使用的域名 + - 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 + - DOMAIN,duga.zhihu.com,REJECT + - DOMAIN,apm.zhihu.com,REJECT + http: rewrite: - - ^https?:\/\/118\.89\.204\.198 - reject-dict - - ^https?:\/\/103\.41\.167\.237 - 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\/commercial_api - reject-dict + # 拦截回答下方的广告 + - ^https?:\/\/api\.zhihu\.com\/commercial_api\/answer/\d+/bottom-v2 - reject-dict + # 拦截不影响使用的请求 + - ^https?:\/\/api\.zhihu\.com\/message-push\/event - reject-dict + # 屏蔽 - 付费回答用户营销引导 + - ^https:\/\/api\.zhihu\.com\/guide_center\/strategy - reject-dict + # 屏蔽 - 会员页浮动广告 + - ^https?:\/\/api\.zhihu\.com\/bazaar\/float_window - reject-dict + # 屏蔽 - 数据上报 + - ^https?:\/\/api\.zhihu.\com\/metrics\/report - reject-dict + # 屏蔽 - 疑似通知 + - ^https?:\/\/api\.zhihu\.com\/settings\/new\/notification - reject-dict + # 屏蔽 - 会员相关广告 + - ^https?:\/\/api\.zhihu\.com\/bazaar\/vip_tab\/header - 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\/root\/window - reject-dict # 拦截应用内弹窗 - ^https?:\/\/api\.zhihu\.com\/me\/guides - reject-dict # 去除关注页最常访问 - ^https?:\/\/api\.zhihu\.com\/moments\/recent - reject-dict # 拦截推荐页顶部广告 - ^https?:\/\/api\.zhihu\.com\/api\/v4\/ecom_data\/config - reject-dict - # 底栏加号的广告 - - ^https?:\/\/api\.zhihu\.com\/content-distribution-core\/bubble\/common\/settings - reject-dict - # 推荐页搜索栏左侧图标 - - ^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/current_reading - reject-dict # 疑似推荐页内容更新红点 - - ^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config url reject-dict - # 去除回答页的相关搜索 - - ^https?:\/\/www\.zhihu\.com\/api\/v\d+\/search\/related_queries\/answer url reject-dict - # 暂不清楚作用 - - ^https?:\/\/api\.zhihu\.com\/commercial_api\/banners_v3\/app_topstory_banner - reject-dict - - ^https?:\/\/api\.zhihu\.com\/ad-style-service\/request - reject-dict + - ^https?:\/\/api\.zhihu\.com\/feed\/render\/revisit\/tag_config - reject-dict + # 部分推荐页Tab的Banner + - ^https?:\/\/api\.zhihu\.com\/content-distribution-core\/sections\/ - reject-dict + + mitm: + - www.zhihu.com + - api.zhihu.com + - zhuanlan.zhihu.com + - m-cloud.zhihu.com + - page-info.zhihu.com + - web-render.zhihu.com script: # 获取用户信息 - 隔离用户数据,开启本地会员等 - match: ^https?:\/\/api\.zhihu\.com\/people\/ - name: zheye.js + name: 'zheye-script' type: response require-body: true - timeout: 30 - argument: '' + max-size: 0 # 关键词屏蔽 - 解锁本地的关键词屏蔽功能,需要开启本地VIP - match: ^https?:\/\/api\.zhihu\.com\/feed-root\/block - name: zheye.js + name: 'zheye-script' type: request require-body: true - timeout: 30 - argument: '' + max-size: 0 # 优化软件配置 - 优化下发的配置文件来实现某些效果 - - match: ^https?:\/\/m-cloud\.zhihu\.com\/api\/cloud\/config\/all\? - name: zheye.js + - match: ^https?:\/\/api\.zhihu\.com\/root\/tab\/v2 + name: 'zheye-script' 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\/feed\/render\/tab\/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: '' + max-size: 0 # 推荐页 - 移除黑名单用户发布的文章、去除广告,及自定义一些屏蔽项目 - - match: ^https:\/\/api\.zhihu\.com\/topstory\/recommend - name: zheye.js + - match: ^https:\/\/(api|web-render)\.zhihu\.com\/topstory\/recommend + name: 'zheye-script' type: response require-body: true + max-size: 0 timeout: 30 - argument: '' - # 黑名单页 - 同步黑名单数据 - - match: ^https?:\/\/api\.zhihu\.com\/settings\/blocked_users - name: zheye.js + # 回答列表 - 移除黑名单用户的回答、去除广告 + - match: ^https:\/\/api\.zhihu\.com\/questions\/\d+\/feeds? + name: 'zheye-script' 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: '' + max-size: 0 # 回答信息流 - 移除黑名单用户的回答、去除广告 - - match: ^https?:\/\/api\.zhihu\.com\/next-(data|bff|render) - name: zheye.js + - match: ^https?:\/\/api\.zhihu\.com\/next-render + name: 'zheye-script' 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: '' + max-size: 0 # 消息页 - 折叠官方消息、屏蔽营销消息 - match: ^https?:\/\/api\.zhihu\.com\/notifications\/v3\/(message|timeline\/entry\/system_message) - name: zheye.js + name: 'zheye-script' type: response require-body: true - timeout: 30 - argument: '' + max-size: 0 - # 回答页 - 内容优化,付费、营销、推广内容文首提醒 - - match: ^https?:\/\/www\.zhihu\.com\/appview\/v2\/answer\/.*(entry=(?!(preload-topstory|preload-search|preload-subscription)))? - name: zheye.js + # 评论页 - 去除黑名单用户发表的评论 + - match: ^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? + name: 'zheye-script' type: response require-body: true - timeout: 30 - argument: '' + max-size: 0 - # 回答页 - 屏蔽下翻出现的黑名单用户的回答 - - match: ^https?:\/\/api\.zhihu\.com\/next\? - name: zheye.js + # 回答页 - 移除相关问题推荐 + - match: ^https:\/\/(page-info|api)\.zhihu\.com\/answers\/v2\/\d+ + name: 'zheye-script' type: response require-body: true - timeout: 30 - argument: '' + max-size: 0 - # 文章页 - 去除底部广告 - - match: ^https?:\/\/www\.zhihu\.com\/api\/v\d\/articles\/\d+\/recommendation\? - name: zheye.js + # 文章页 - 移除相关问题推荐 + - match: ^https:\/\/api\.zhihu\.com\/articles\/v\d\/\d+ + name: 'zheye-script' type: response require-body: true - timeout: 30 - argument: '' + max-size: 0 + + # 关注页 - 屏蔽黑名单用户 + - match: ^https?:\/\/api\.zhihu\.com\/moments_v3\? + name: 'zheye-script' + type: response + require-body: true + max-size: 0 # 热榜页 - 去除广告 - - match: ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) - name: zheye.js + - match: ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists(\?|\/) + name: 'zheye-script' type: response require-body: true - timeout: 30 - argument: '' + max-size: 0 # 搜索页 - 去除预置广告 - match: ^https?:\/\/api\.zhihu\.com\/search\/preset_words\? - name: zheye.js + name: 'zheye-script' type: response require-body: true - timeout: 30 - argument: '' + max-size: 0 - 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" - - "103.41.167.237" - - "118.89.204.198" - - "2402:4e00:1200:ed00:0:9089:6dac:96b6" + # 搜索页 - 猜你想搜去广告 + - match: ^https?:\/\/api\.zhihu\.com\/search\/recommend_query + name: 'zheye-script' + type: response + require-body: true + max-size: 0 + + # 黑名单页 - 同步黑名单数据 + - match: ^https:\/\/api\.zhihu\.com\/settings\/blocked_users + name: 'zheye-script' + type: response + require-body: true + max-size: 0 + + # 回答页底部评论摘要 - 移除黑名单用户发表的评论 + - match: ^https?:\/\/www\.zhihu\.com\/api\/v4\/comment_v5\/answers\/\d+\/abstract_comment\? + name: 'zheye-script' + type: response + require-body: true + max-size: 0 script-providers: - zheye.js: + 'zheye-script': url: https://gist.githubusercontent.com/blackmatrix7/f5f780d0f56b319b6ad9848fd080bb18/raw/zheye.min.js - interval: 86400 - + interval: 86400 \ No newline at end of file