mirror of
https://github.com/blackmatrix7/ios_rule_script.git
synced 2024-12-26 09:09:26 +08:00
[知乎]适配知乎8.3.0 (8020)
This commit is contained in:
parent
7669e8671d
commit
8b0e1f11e9
@ -24,7 +24,7 @@
|
|||||||
14. 去除关注页顶部的最新视频
|
14. 去除关注页顶部的最新视频
|
||||||
15. 客户端中显示自己是盐选会员
|
15. 客户端中显示自己是盐选会员
|
||||||
16. 直接运行脚本可清理客户端内持久化的数据
|
16. 直接运行脚本可清理客户端内持久化的数据
|
||||||
17. 部分功能支持BoxJS配置(alpha)
|
17. 部分功能支持BoxJS配置
|
||||||
18. 付费内容文首提醒✨
|
18. 付费内容文首提醒✨
|
||||||
19. 推广内容文首提醒✨
|
19. 推广内容文首提醒✨
|
||||||
20. 拦截部分回答预加载以节约流量✨
|
20. 拦截部分回答预加载以节约流量✨
|
||||||
@ -36,7 +36,7 @@
|
|||||||
26. 屏蔽消息页面的知乎活动助手✨
|
26. 屏蔽消息页面的知乎活动助手✨
|
||||||
27. 新旧版评论区黑名单用户过滤✨
|
27. 新旧版评论区黑名单用户过滤✨
|
||||||
28. 屏蔽转发的黑名单用户的想法✨
|
28. 屏蔽转发的黑名单用户的想法✨
|
||||||
29. 推荐页屏蔽关键词解锁✨
|
29. 推荐页屏蔽关键词解锁(支持正则)✨
|
||||||
30. ~~知乎网页版去广告 [#21](https://github.com/blackmatrix7/ios_rule_script/issues/21)~~❓
|
30. ~~知乎网页版去广告 [#21](https://github.com/blackmatrix7/ios_rule_script/issues/21)~~❓
|
||||||
31. ~~去除热搜内的广告~~❓
|
31. ~~去除热搜内的广告~~❓
|
||||||
32. ~~屏蔽推荐页中的盐选推荐内容~~❓
|
32. ~~屏蔽推荐页中的盐选推荐内容~~❓
|
||||||
@ -46,9 +46,7 @@
|
|||||||
|
|
||||||
## 最近更新
|
## 最近更新
|
||||||
|
|
||||||
1. 推荐页关键词屏蔽支持正则表达式
|
1. 适配至8.3.0 (8020)
|
||||||
2. 加入BoxJS配置开关
|
|
||||||
3. 提高推荐页屏蔽效率
|
|
||||||
|
|
||||||
## 版本切换
|
## 版本切换
|
||||||
|
|
||||||
@ -58,34 +56,19 @@
|
|||||||
|
|
||||||
## 异常处理
|
## 异常处理
|
||||||
|
|
||||||
如出现执行异常,通常是由于复写冲突或118.89.204.198这个地址的请求没有正常拦截导致。
|
**所有版本**
|
||||||
|
|
||||||
建议:
|
脚本的执行依赖于规则对`118.89.204.198`、`2402:4e00:1200:ed00:0:9089:6dac:96b6`两个IP地址的屏蔽。出现异常请先抓包确认上述两个地址的请求已经全部被正确拦截,无法屏蔽上述两个地址将导致所有功能失效!
|
||||||
|
|
||||||
1. 确认除本脚本外,不含有其他第三方关于知乎的复写
|
**知乎 8.3.0 (8020)版本**
|
||||||
2. 抓包确认118.89.204.198这个地址的请求已被正确拦截
|
|
||||||
|
|
||||||
**如果无法拦截118.89.204.198的请求,会导致绝大多数功能失效,请务必自行调整配置文件,确认正常拦截118.89.204.198。**
|
适配情况请访问:https://github.com/blackmatrix7/ios_rule_script/issues/465
|
||||||
|
|
||||||
建议解决方法:
|
|
||||||
|
|
||||||
1. 使用一个不含其他规则的空白配置文件验证效果
|
|
||||||
2. 将知乎去广告规则的优先级调整到最高
|
|
||||||
3. 重启知乎
|
|
||||||
4. 清理知乎的缓存
|
|
||||||
5. 卸载知乎后重装
|
|
||||||
6. 直接运行脚本清理持久化数据
|
|
||||||
7. ~~放弃使用~~
|
|
||||||
|
|
||||||
**因为个人精力实现有限,无力处理各种因为复写冲突引起的异常。在反馈异常时,请自行创建一个空白的配置文件,仅含有知乎助手相关内容先进行验证。如果使用空白配置文件确认仍存在问题,提供空白的配置文件、知乎版本、客户端名称和版本,便于复现问题。**
|
|
||||||
|
|
||||||
**其他未经过空白配置文件验证、没有版本号等信息,仅有一张图甚至一句话的,不再进行复现测试,请自行解决。**
|
|
||||||
|
|
||||||
## 部分功能说明
|
## 部分功能说明
|
||||||
|
|
||||||
### BoxJS可选配置(alpha)
|
### BoxJS可选配置
|
||||||
|
|
||||||
部分功能支持BoxJS配置,目前还在测试阶段,配置项可能有所增减。
|
部分功能支持BoxJS配置,配置项可能有所增减。
|
||||||
|
|
||||||
如果有问题请将日志等级设置到DEBUG后提交反馈。
|
如果有问题请将日志等级设置到DEBUG后提交反馈。
|
||||||
|
|
||||||
@ -252,3 +235,5 @@ https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhi
|
|||||||
[@fiiir](https://github.com/fiiir)
|
[@fiiir](https://github.com/fiiir)
|
||||||
|
|
||||||
[@LuzMasonj](https://github.com/LuzMasonj)
|
[@LuzMasonj](https://github.com/LuzMasonj)
|
||||||
|
|
||||||
|
[@dcty](https://github.com/dcty)
|
@ -35,6 +35,7 @@ http-response ^https?:\/\/api\.zhihu\.com\/search\/preset_words\? requires-body=
|
|||||||
http-response ^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,tag=知乎_热搜去广告
|
http-response ^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,tag=知乎_热搜去广告
|
||||||
http-response ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,tag=知乎_热榜去广告
|
http-response ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.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/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.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/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,tag=知乎_评论去广告
|
||||||
|
http-response ^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config requires-body=1,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js,tag=知乎_优化软件配置
|
||||||
|
|
||||||
[MITM]
|
[MITM]
|
||||||
hostname = www.zhihu.com,api.zhihu.com,zhuanlan.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,103.41.167.236,103.41.167.234,103.41.167.235,103.41.167.226
|
@ -12,6 +12,8 @@
|
|||||||
^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) url script-response-body https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) url script-response-body https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
||||||
# 知乎评论去广告
|
# 知乎评论去广告
|
||||||
^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? url script-response-body https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
^https?:\/\/api\.zhihu\.com\/(comment_v5\/)?(answers|comments?|articles|pins)\/\d+\/(root_|child_)?comments? url script-response-body https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
||||||
|
# 优化软件配置
|
||||||
|
^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config url script-response-body https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
||||||
# 拦截知乎开屏广告
|
# 拦截知乎开屏广告
|
||||||
URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\? url reject-dict
|
URL-REGEX,^https?:\/\/api\.zhihu\.com\/commercial_api\/launch_v2\? url reject-dict
|
||||||
# 知乎去除回答下的广告
|
# 知乎去除回答下的广告
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
[Rule]
|
[Rule]
|
||||||
# 知乎广告拦截
|
# 知乎广告拦截
|
||||||
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_remove_ads.list,REJECT-DROP
|
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_remove_ads.list,REJECT-NO-DROP
|
||||||
|
|
||||||
[Map Local]
|
[Map Local]
|
||||||
# 知乎其他广告拦截
|
# 知乎其他广告拦截
|
||||||
@ -17,6 +17,7 @@ RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/s
|
|||||||
知乎_热搜去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
知乎_热搜去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.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/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.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/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.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/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.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/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
||||||
|
知乎_优化软件配置 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config,script-path=https://gist.githubusercontent.com/blackmatrix7/2e550ebf28ca60d620654e394ec47e0b/raw/zhihu.js
|
||||||
|
|
||||||
[MITM]
|
[MITM]
|
||||||
hostname = %APPEND% www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com
|
hostname = %APPEND% www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
[Rule]
|
[Rule]
|
||||||
# 知乎广告拦截
|
# 知乎广告拦截
|
||||||
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_remove_ads.list,REJECT-DROP
|
RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_remove_ads.list,REJECT-NO-DROP
|
||||||
|
|
||||||
[URL Rewrite]
|
[URL Rewrite]
|
||||||
# 屏蔽知乎下发的配置,如皮肤等
|
# 屏蔽知乎下发的配置,如皮肤等
|
||||||
|
Loading…
Reference in New Issue
Block a user