[知乎助手]支持推荐页正则过滤及BoxJS功能配置

This commit is contained in:
blackmatrix7 2021-10-04 01:34:07 +08:00
parent c9d1da559a
commit 936165178a
11 changed files with 495 additions and 490 deletions

View File

@ -11,10 +11,7 @@
"keys": ["unicom_user_cookie", "unicom_mobile", "unicom_encrypt_mobile", "city_code"], "keys": ["unicom_user_cookie", "unicom_mobile", "unicom_encrypt_mobile", "city_code"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/10010", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/10010",
"icons": [ "icons": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/10010.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/10010.png"],
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/10010.png",
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/10010.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/10010/unicom_signin.js"
}, },
{ {
@ -35,10 +32,7 @@
], ],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/bilibili", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/bilibili",
"icons": [ "icons": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/bilibili.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/bilibili.png"]
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/bilibili.png",
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/bilibili.png"
]
}, },
{ {
"id": "blackmatrix7.didachuxing", "id": "blackmatrix7.didachuxing",
@ -46,30 +40,16 @@
"keys": ["dida_cid", "dida_cookie", "dida_useragent", "dida_access_token"], "keys": ["dida_cid", "dida_cookie", "dida_useragent", "dida_access_token"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/didachuxing", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/didachuxing",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing.png"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing.png",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.js"
}, },
{ {
"id": "blackmatrix7.didichuxing", "id": "blackmatrix7.didichuxing",
"name": "滴滴出行", "name": "滴滴出行",
"keys": [ "keys": ["didi_token", "didi_city_id", "didi_lottery_id", "didi_my_source_id", "didi_group_id", "didi_finance_channel_id", "didi_finance_activity_id"],
"didi_token",
"didi_city_id",
"didi_lottery_id",
"didi_my_source_id",
"didi_group_id",
"didi_finance_channel_id",
"didi_finance_activity_id"
],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/didichuxing", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/didichuxing",
"icons": [ "icons": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/didi.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/didi.png"],
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/didi.png",
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/didi.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didichuxing/didi_checkin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didichuxing/didi_checkin.js"
}, },
{ {
@ -78,10 +58,7 @@
"keys": ["dingdongmaicai_checkin_cookie", "dingdongmaicai_checkin_body"], "keys": ["dingdongmaicai_checkin_cookie", "dingdongmaicai_checkin_body"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/dingdong", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/dingdong",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong.png"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong.png",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js"
}, },
{ {
@ -90,10 +67,7 @@
"keys": ["eleme_app_cookie", "eleme_app_longitude", "eleme_app_latitude"], "keys": ["eleme_app_cookie", "eleme_app_longitude", "eleme_app_latitude"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/eleme", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/eleme",
"icons": [ "icons": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/elem.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/elem.png"],
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/elem.png",
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/elem.png"
],
"scripts": [ "scripts": [
{ {
"name": "领取吃货豆", "name": "领取吃货豆",
@ -111,10 +85,7 @@
"keys": ["famijia_checkin_cookie", "famijia_device_id", "famijia_black_box"], "keys": ["famijia_checkin_cookie", "famijia_device_id", "famijia_black_box"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/famijia", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/famijia",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia.png"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia.png",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/famijia/famijia_checkin.js"
}, },
{ {
@ -123,10 +94,7 @@
"keys": ["luka_checkin_cookie", "luka_signin_auth"], "keys": ["luka_checkin_cookie", "luka_signin_auth"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/luka", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/luka",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/luka/luka.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/luka/luka.png"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/luka/luka.png",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/luka/luka.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/luka/luka_signin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/luka/luka_signin.js"
}, },
{ {
@ -135,29 +103,16 @@
"keys": ["manmanbuy_checkin_cookie", "manmanbuy_login_body", "manmanbuy_username", "manmanbuy_deviceid"], "keys": ["manmanbuy_checkin_cookie", "manmanbuy_login_body", "manmanbuy_username", "manmanbuy_deviceid"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/manmanbuy", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/manmanbuy",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanmai.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanmai.png"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanmai.png",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanmai.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/manmanbuy/manmanbuy_checkin.js"
}, },
{ {
"id": "blackmatrix7.meituan", "id": "blackmatrix7.meituan",
"name": "美团买菜", "name": "美团买菜",
"keys": [ "keys": ["meituan_mall_cookie", "meituan_mall_t", "meituan_mall_querystring", "meituan_mall_uuid", "meituan_mall_userid", "meituan_mall_body"],
"meituan_mall_cookie",
"meituan_mall_t",
"meituan_mall_querystring",
"meituan_mall_uuid",
"meituan_mall_userid",
"meituan_mall_body"
],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/meituan", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/meituan",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai.png"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai.png",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/meituan/maicai_checkin.js"
}, },
{ {
@ -166,10 +121,7 @@
"keys": ["smzdm_cookie", "smzdm_session"], "keys": ["smzdm_cookie", "smzdm_session"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/smzdm", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/smzdm",
"icons": [ "icons": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/smzdm.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/smzdm.png"],
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/smzdm.png",
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/smzdm.png"
],
"scripts": [ "scripts": [
{ {
"name": "每日自动任务", "name": "每日自动任务",
@ -187,10 +139,7 @@
"keys": ["tieba_checkin_cookie"], "keys": ["tieba_checkin_cookie"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/tieba", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/tieba",
"icons": [ "icons": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/tieba.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/tieba.png"],
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/tieba.png",
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/tieba.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/tieba/tieba_checkin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/tieba/tieba_checkin.js"
}, },
{ {
@ -199,10 +148,7 @@
"keys": ["wanda_checkin_cookie", "wanda_activitycode"], "keys": ["wanda_checkin_cookie", "wanda_activitycode"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/wanda", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/wanda",
"icons": [ "icons": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/wanda.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/wanda.png"],
"https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/wanda.png",
"https://raw.githubusercontent.com/Orz-3/mini/master/Color/wanda.png"
],
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/wanda/wanda_checkin.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/wanda/wanda_checkin.js"
}, },
{ {
@ -211,15 +157,124 @@
"keys": ["zhihu_blocked_users", "zhihu_current_userinfo", "zhihu_keyword_block"], "keys": ["zhihu_blocked_users", "zhihu_current_userinfo", "zhihu_keyword_block"],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/zhihu", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/zhihu",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu.png"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu.png", "descs_html": ["<h4 align=\"left\">具体功能说明查看<a href=\"https://github.com/blackmatrix7/ios_rule_script/tree/master/script/zhihu#readme\">README.md</a></h4>", "<h4 align=\"left\">✨为Plus版本专属功能❓为已过时或即将淘汰功能</h4>", "<h4 align=\"left\">切换Lite、Plus版本或出现异常请执行数据清理</h4>"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu.png"
],
"scripts": [ "scripts": [
{ {
"name": "知乎助手数据清理", "name": "知乎助手数据清理",
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js" "script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js"
} }
],
"settings": [
{
"id": "zhihu_settings_recommend_stream",
"name": "屏蔽推荐页流媒体",
"val": false,
"type": "boolean",
"desc": "屏蔽推荐页中的视频、直播等流媒体信息"
},
{
"id": "zhihu_settings_moments_stream",
"name": "屏蔽关注页流媒体",
"val": false,
"type": "boolean",
"desc": "屏蔽关注页中的“最新视频”"
},
{
"id": "zhihu_settings_hot_list",
"name": "热榜去广告",
"val": true,
"type": "boolean",
"desc": "去除知乎热榜页面的广告"
},
{
"id": "zhihu_settings_fake_vip",
"name": "显示为盐选会员",
"val": false,
"type": "boolean",
"desc": "非会员用户显示为盐选会员,仅自己可见,无实际效果"
},
{
"id": "zhihu_settings_preset_words",
"name": "屏蔽预置关键词广告",
"val": false,
"type": "boolean",
"desc": "屏蔽搜索页中的预置关键词广告"
},
{
"id": "zhihu_settings_blocked_users",
"name": "黑名单屏蔽效果增强✨",
"val": true,
"type": "boolean",
"desc": "增强知乎APP黑名单用户屏蔽效果"
},
{
"id": "zhihu_settings_blocked_keywords",
"name": "推荐页关键词过滤✨",
"val": true,
"type": "boolean",
"desc": "除普通关键词外还支持正则表达式过滤"
},
{
"id": "zhihu_settings_sys_msg",
"name": "屏蔽官方账号推广消息✨",
"val": false,
"type": "boolean",
"desc": "屏蔽消息页内的官方账号推广消息"
},
{
"id": "zhihu_settings_answer_tip",
"name": "付费内容/营销推广/购物推广提醒✨",
"val": true,
"type": "boolean",
"desc": "在知乎回答中提示付费或营销内容"
},
{
"id": "zhihu_settings_remove_yanxuan",
"name": "屏蔽“盐选推荐”❓",
"val": true,
"type": "boolean",
"desc": "屏蔽推荐页中的“盐选推荐”"
},
{
"id": "zhihu_settings_app_conf",
"name": "去除推荐页多余标签❓",
"val": false,
"type": "boolean",
"desc": "知乎7.x及以上版本无效"
},
{
"id": "zhihu_settings_hot_search",
"name": "知乎热搜去广告❓",
"val": false,
"type": "boolean",
"desc": "知乎7.x及以上版本无效"
},
{
"id": "magicjs_loglevel",
"name": "日志等级",
"val": "INFO",
"type": "radios",
"items": [
{
"key": "INFO",
"label": "INFO"
},
{
"key": "WARNING",
"label": "WARNING"
},
{
"key": "ERROR",
"label": "ERROR"
},
{
"key": "DEBUG",
"label": "DEBUG"
}
],
"desc": "出现异常时请选择DEBUG提交日志"
}
] ]
}, },
{ {
@ -266,10 +321,7 @@
], ],
"author": "@blackmatrix7", "author": "@blackmatrix7",
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/synology", "repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/synology",
"icons": [ "icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology_dark.jpg", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology.jpg"],
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology_dark.jpg",
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/synology/icon/synology.jpg"
],
"scripts": [ "scripts": [
{ {
"name": "登录Synology", "name": "登录Synology",

View File

@ -6,74 +6,53 @@
分为Plus和Lite两个版本Lite只提供最纯粹的去广告功能Plus带有一些优化阅读体验的功能。 分为Plus和Lite两个版本Lite只提供最纯粹的去广告功能Plus带有一些优化阅读体验的功能。
目前已实现(✨的为Plus版本的功能) 目前已实现 (✨的为Plus版本的功能,❓为过时或即将删除的功能)
1. 去除知乎的启动广告 1. 去除知乎的启动广告
2. 去除关注列表的广告 2. 去除关注的广告
3. 去除推荐列表的广告 3. 去除推荐的广告
4. 去除回答列表的广告 4. 去除回答列表的广告
5. 去除回答列表的圆桌 5. 去除回答列表的圆桌
6. 去除回答页面的广告 6. 去除回答页面的广告
7. 去除知乎直播红点 7. 去除知乎直播红点
8. 去除知乎指南提示 8. 去除知乎指南提示
9. 去除未读消息的红点 9. 去除未读消息的红点
10. 知乎网页版去广告 [#21](https://github.com/blackmatrix7/ios_rule_script/issues/21)
11. 拦截知乎内测邀请 11. 拦截知乎内测邀请
12. 去除预置关键字广告(beta) 12. 去除预置关键字广告
13. 去除热搜内的广告(beta) 14. 去除热榜内的广告
14. 去除热榜内的广告(beta) 15. 去除评论区内的广告
15. 去除评论区内的广告(beta) 14. 去除关注页顶部的最新视频
16. 客户端中显示自己是盐选会员(除了自娱自乐没任何用途) 15. 客户端中显示自己是盐选会员
17. 直接运行脚本可清理客户端内持久化的数据 16. 直接运行脚本可清理客户端内持久化的数据
18. 付费内容文首提醒(beta)✨ 17. 部分功能支持BoxJS配置(alpha)
19. 推广内容文首提醒(beta)✨ 18. 付费内容文首提醒✨
19. 推广内容文首提醒✨
20. 拦截部分回答预加载以节约流量✨ 20. 拦截部分回答预加载以节约流量✨
21. 去除推荐列表的付费推荐内容✨ 21. 去除官方账号的推广消息✨
22. 去除官方账号的推广消息✨ 22. 去除推荐页中黑名单用户的回答✨
23. 去除推荐列表中黑名单用户的回答✨ 23. 去除回答列表中黑名单用户的回答✨
24. 去除回答列表中黑名单用户的回答✨ 24. 去除关注页顶部的最常访问✨
25. 去除关注列表顶部的最常访问✨ 25. 精简首页顶部的标签页✨
26. 精简首页顶部的标签页✨ 26. 屏蔽消息页面的知乎活动助手✨
27. 屏蔽消息页面的知乎活动助手✨ 27. 新旧版评论区黑名单用户过滤✨
28. 减少推荐列表内的视频(alpha)✨ 28. 屏蔽转发的黑名单用户的想法✨
29. 拦截知乎下发的配置,如皮肤(alpha)✨ 29. 推荐页屏蔽关键词解锁✨
30. 新旧版评论区黑名单用户过滤✨ 30. 知乎网页版去广告 [#21](https://github.com/blackmatrix7/ios_rule_script/issues/21)❓
31. 屏蔽转发的黑名单用户的想法✨ 31. 去除热搜内的广告❓
32. 非盐选会员屏蔽关键字解锁✨ 32. 屏蔽推荐页中的盐选推荐内容❓
33. 拦截知乎下发的配置,如皮肤(alpha)✨❓
隐藏功能: 34. 减少推荐页内的视频(alpha)✨❓
35. 去除推荐页的付费推荐内容✨❓
隐藏功能默认不生效,需要自行根据脚本中的注释简单修改代码实现。
如果你不清楚如何修改代码,请不要尝试,目前不处理任何自行修改代码引起的异常。
1. 去除推荐列表中的视频
2. 去除推荐列表中的直播
3. 脚本内置的黑名单用户
4. 调整允许设置屏蔽关键词的数量
5. 屏蔽推荐列表中的盐选推荐内容
## 最近更新 ## 最近更新
1. 修复偶尔获取不到用户信息导致黑名单失效的问题 1. 推荐页关键词屏蔽支持正则表达式
2. 修复官方营销消息在某些情况下屏蔽失效的问题 2. 加入BoxJS配置开关
3. 修复重新获取黑名单时没有清理历史脚本黑名单数据的问题 3. 提高推荐页屏蔽效率
4. 去除推荐列表中盐选专栏的文章
5. 非盐选会员现在也可以使用屏蔽关键字的功能
6. 查看其他用户信息时,如果已经是黑名单用户,会自动加入脚本黑名单
7. 新旧版评论区黑名单用户过滤
8. 直接运行脚本可清理客户端内持久化的数据
9. 客户端中显示自己是盐选会员(除了自娱自乐没任何用途)
10. 修复知乎视频无法自动播放的问题
11. 去除热搜内的广告(beta)
12. 去除热榜内的广告(beta)
13. 强化精简首页顶部标签页的功能(清理缓存后生效)
14. 拦截知乎下发的配置,如皮肤
15. 去除评论区内的广告(beta)
## 版本切换 ## 版本切换
在Lite版本和Plus版本切换时务必手动运行一次脚本清理持久化数据以免影响切换效果。 **在Lite版本和Plus版本切换时务必手动运行一次脚本清理持久化数据以免影响切换效果。**
清理持久化数据后如果使用Plus版本请重新获取黑名单。 清理持久化数据后如果使用Plus版本请重新获取黑名单。
@ -104,25 +83,33 @@
## 部分功能说明 ## 部分功能说明
### 屏蔽关键词解锁(alpha) ### BoxJS可选配置(alpha)
现在非会员,可以在设置-屏蔽设置-屏蔽关键词中使用此功能;**真正的盐选会员此功能不会生效。** 部分功能支持BoxJS配置目前还在测试阶段配置项可能有所增减。
此功能并非真正解锁会员特权只是借用知乎APP的操作界面通过脚本实现的关键词屏蔽 如果有问题请将日志等级设置到DEBUG后提交反馈
与会员真正的屏蔽关键词功能相比执行效率和匹配范围都较差所以限制只能设置20个关键词。关键词是与整个JSON字符串进行比较所以在设置关键词时尽量不要使用英文和标点否则一旦和JSON对象的key相同会导致推荐列表无任何显示。如果一定要使用英文单词和标点务必清楚自己在做什么。 Lite版本请确保所有Plus版本的选项都为关闭状态以减少不必要的代码执行。
<img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/images/07.jpg" style="zoom:50%;" />
### 屏蔽关键词解锁
现在非会员和会员都可以在“设置-屏蔽设置-屏蔽关键词”中使用此功能。
**真正的盐选会员使用此脚本后会覆盖掉盐选会员的的配置功能但已配置好的关键词不会失效。如果不需要此功能可以在BoxJS中永久关闭。**
此功能并非真正解锁会员特权只是借用知乎APP的操作界面通过脚本实现的关键词屏蔽。如果你已经是尊贵的盐选会员建议关闭此功能使用盐选会员自带的关键词屏蔽。
知乎助手的关键词解锁额外提供了正则表达式的屏蔽功能,可以实现一些较复杂的判断逻辑,及提高屏蔽效率。比如关键词设置`男士.*(沐浴露|香水)+`,表示只有“男士”和“沐浴露”或“香水”共同出现时才进行屏蔽。而`(羊毛|优惠|红包)+`,表示“羊毛”、“优惠”、“红包”出现任意一个关键词就进行屏蔽,可以替代原先的羊毛”、“优惠”、“红包”三个关键词,减少关键词数量,提高屏蔽效率。
<img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/images/06.jpg" style="zoom:50%;" /> <img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/images/06.jpg" style="zoom:50%;" />
#### 小技巧 #### 小技巧
添加关键字 `zvideo`,可屏蔽推荐列表中的视频。 通过抓包获取推荐页的数据,可以通过正则屏蔽任意内容
理论上通过抓包获取的各种类型数据只要能在响应的json中找到对应的关键字都可以通过“关键字屏蔽”功能实现过滤。 ### 付费内容提醒
**当用户为盐选会员时,脚本的关键字屏蔽功能不生效,所以对会员没有效果。**
### 付费内容提醒(beta)
遇到需要付费阅读的回答时,会**将付费内容的提醒置顶**。避免阅读中途发现内容需要付费的情况,提高阅读体验。 遇到需要付费阅读的回答时,会**将付费内容的提醒置顶**。避免阅读中途发现内容需要付费的情况,提高阅读体验。
@ -130,21 +117,17 @@
<img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/images/04.jpg" style="zoom:50%;" /> <img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/images/04.jpg" style="zoom:50%;" />
### 推广内容提醒(beta) ### 推广内容提醒
遇到含有营销推广/购物推广内容的回答时,会将含有推广内容的提醒置顶,自行判断是否继续阅读。 遇到含有营销推广/购物推广内容的回答时,会将含有推广内容的提醒置顶,自行判断是否继续阅读。
<img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/images/05.png" style="zoom:50%;" /> <img src="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/images/05.png" style="zoom:50%;" />
### 精简顶部标签页
精简顶部标签页的功能需要对原先拦截的appcloud2.zhihu.com域名进行放行通过脚本对Response进行修改以实现此功能。**原先有对此域名进行拦截的规则,务必进行去除,否则功能不会生效。**
### 黑名单增强 ### 黑名单增强
知乎的黑名单设计,无法屏蔽黑名单用户的公开信息。将某人拉黑后,他的回答依旧会出现在推荐列表和回答列表中。 知乎的黑名单设计,无法屏蔽黑名单用户的公开信息。将某人拉黑后,他的回答依旧会出现在推荐页和回答列表中。
黑名单增强就是对黑名单用户的回答进行屏蔽,让他的回答从推荐列表和回答列表中消失。(如果只为在推荐列表屏蔽某人,建议用知乎提供的屏蔽用户的方法,这是在服务器端进行的更加高效的屏蔽。) 黑名单增强就是对黑名单用户的回答进行屏蔽,让他的回答从推荐页和回答列表、评论和想法中消失。(如果只为在推荐页屏蔽某人,建议用知乎提供的屏蔽用户的方法,这是在服务器端进行的更加高效的屏蔽。)
黑名单匹配方式为用户名,同名用户都会被屏蔽,“[已重置]”除外。 黑名单匹配方式为用户名,同名用户都会被屏蔽,“[已重置]”除外。
@ -178,6 +161,8 @@ https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhi
### Loon ### Loon
使用插件
```ini ```ini
[Plugin] [Plugin]
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.lnplugin, tag=知乎助手_去广告及体验增强, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.lnplugin, tag=知乎助手_去广告及体验增强, enabled=true
@ -194,9 +179,9 @@ IP-CIDR,118.89.204.198/32,REJECT
IP6-CIDR,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT IP6-CIDR,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT
HOST,118.89.204.198,REJECT HOST,118.89.204.198,REJECT
# 知乎去广告,以下规则的位置越前方越好 # 知乎去广告,以下规则的位置越前方越好
HOST,appcloud2.in.zhihu.com,REJECT
HOST,mqtt.zhihu.com,reject HOST,mqtt.zhihu.com,reject
HOST,sugar.zhihu.com,reject HOST,sugar.zhihu.com,reject
HOST,appcloud2.in.zhihu.com,REJECT
USER-AGENT,AVOS*,REJECT USER-AGENT,AVOS*,REJECT
[rewrite_remote] [rewrite_remote]
@ -233,9 +218,9 @@ IP-CIDR,118.89.204.198/32,REJECT
IP6-CIDR,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT IP6-CIDR,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT
HOST,118.89.204.198,REJECT HOST,118.89.204.198,REJECT
# 知乎去广告,以下规则的位置越前方越好 # 知乎去广告,以下规则的位置越前方越好
HOST,appcloud2.in.zhihu.com,REJECT
HOST,mqtt.zhihu.com,reject HOST,mqtt.zhihu.com,reject
HOST,sugar.zhihu.com,reject HOST,sugar.zhihu.com,reject
HOST,appcloud2.in.zhihu.com,REJECT
USER-AGENT,AVOS*,REJECT USER-AGENT,AVOS*,REJECT
[rewrite_remote] [rewrite_remote]
@ -248,7 +233,7 @@ https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhi
对于脚本内置的黑名单,**保持谨慎和克制的原则**,只加入无法通过加入黑名单进行屏蔽的账号。如需要屏蔽更多的账户,可以由使用者手动将其加入黑名单来实现。 对于脚本内置的黑名单,**保持谨慎和克制的原则**,只加入无法通过加入黑名单进行屏蔽的账号。如需要屏蔽更多的账户,可以由使用者手动将其加入黑名单来实现。
推荐列表中脚本内置的黑名单基本上都已去除,只保留”会员推荐“等几个,因为这些都不是账号,不能通过加入黑名单来屏蔽。并且, 会员推荐的屏蔽功能只有在你获取过一次黑名单后才会生效。如果你用的是Lite版本完全不用担心屏蔽问题。 推荐中脚本内置的黑名单基本上都已去除,只保留”会员推荐“等几个,因为这些都不是账号,不能通过加入黑名单来屏蔽。并且, 会员推荐的屏蔽功能只有在你获取过一次黑名单后才会生效。如果你用的是Lite版本完全不用担心屏蔽问题。
官方消息中脚本内置的黑名单也仅保留无法加入黑名单的营销账号,其他的如果需要屏蔽,手动把它们加入黑名单就好。 官方消息中脚本内置的黑名单也仅保留无法加入黑名单的营销账号,其他的如果需要屏蔽,手动把它们加入黑名单就好。

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 41 KiB

BIN
script/zhihu/images/07.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -28,13 +28,13 @@ URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\?,REJ
^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\? - reject-dict ^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\? - reject-dict
[Script] [Script]
http-response ^https?:\/\/api\.zhihu\.com\/people requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_处理用户信息 http-response ^https?:\/\/api\.zhihu\.com\/people requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js,tag=知乎_处理用户信息
http-response ^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_信息流去广告 http-response ^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js,tag=知乎_信息流去广告
http-response ^https?:\/\/api\.zhihu\.com\/v4\/questions requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_回答列表去广告 http-response ^https?:\/\/api\.zhihu\.com\/v4\/questions requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.min.js,tag=知乎_预置关键词去广告
http-response ^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_热搜去广告 http-response ^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.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/zhihu/zhihu_plus.min.js,tag=知乎_评论去广告
[MITM] [MITM]
hostname = www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com hostname = www.zhihu.com,api.zhihu.com,zhuanlan.zhihu.com

View File

@ -1,17 +1,17 @@
# 知乎处理用户信息 # 知乎处理用户信息
^https?:\/\/api\.zhihu\.com\/people\/ url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/people\/ url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js
# 知乎信息流去广告 # 知乎信息流去广告
^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=)(?!\/people) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=)(?!\/people) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js
# 知乎回答列表去广告 # 知乎回答列表去广告
^https?:\/\/api\.zhihu\.com\/v4\/questions url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/v4\/questions url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js
# 知乎预置关键词去广告 # 知乎预置关键词去广告
^https?:\/\/api\.zhihu\.com\/search\/preset_words\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/search\/preset_words\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js
# 知乎热搜去广告 # 知乎热搜去广告
^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js
# 知乎热榜去广告 # 知乎热榜去广告
^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/topstory\/hot-lists?(\?|\/) url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.min.js
# 知乎去除回答下的广告 # 知乎去除回答下的广告
^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations url reject-dict ^https?:\/\/www\.zhihu\.com\/api\/v4\/answers\/\d+\/recommendations url reject-dict
# 知乎其他广告拦截 # 知乎其他广告拦截

View File

@ -10,13 +10,13 @@ RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/s
^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count|v\d\/package|me\/guides|drama\/living-info|ad|fringe|commercial|market\/popovers|.*featured-comment-ad) data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json" ^https?:\/\/api\.zhihu\.com\/(notifications\/v\d\/count|v\d\/package|me\/guides|drama\/living-info|ad|fringe|commercial|market\/popovers|.*featured-comment-ad) data="https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/blank/blank_dict.json"
[Script] [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/zhihu/zhihu_plus.js 知乎_处理用户信息 = 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/zhihu/zhihu_plus.min.js
知乎_信息流去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=)(?!\/people),script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js 知乎_信息流去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=)(?!\/people),script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.js
知乎_回答列表去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/v4\/questions,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js 知乎_回答列表去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/v4\/questions,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.min.js
知乎_热搜去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js 知乎_热搜去广告 = type=http-response,requires-body=1,max-size=0,pattern=^https?:\/\/api\.zhihu\.com\/search\/top_search\/tabs\/hot\/items,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.min.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.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/zhihu/zhihu_plus.min.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

File diff suppressed because one or more lines are too long

View File

@ -36,8 +36,10 @@ URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\?,REJ
^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\? - reject-dict ^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\? - reject-dict
# 屏蔽消息页面上拉的用户精选 # 屏蔽消息页面上拉的用户精选
^https?:\/\/api\.zhihu\.com/moments/hybrid\? - reject-dict ^https?:\/\/api\.zhihu\.com/moments/hybrid\? - reject-dict
# 知乎下发的配置如皮肤等目前已知会导致Tab页管理功能失效 # 知乎下发的配置
^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject-200 ^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject-200
# 屏蔽知乎“我的”页面推荐开通会员的卡片
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card - reject-200
[Script] [Script]
http-request ^https?:\/\/api\.zhihu\.com\/feed-root\/block requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_屏蔽关键字解锁 http-request ^https?:\/\/api\.zhihu\.com\/feed-root\/block requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_屏蔽关键字解锁
@ -45,7 +47,7 @@ http-response ^https?:\/\/api\.zhihu\.com\/people requires-body=1,script-path=ht
http-response ^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=)(?!\/people) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_信息流去广告及黑名单增强 http-response ^https?:\/\/api\.zhihu\.com\/(moments|topstory)(\/|\?)?(recommend|action=|feed_type=)(?!\/people) requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.js,tag=知乎_获取黑名单
http-response ^https?:\/\/api\.zhihu\.com\/v4\/questions requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_回答列表去广告及黑名单增强 http-response ^https?:\/\/api\.zhihu\.com\/v4\/questions requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.js,tag=知乎_回答内容优化
http-response ^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_优化软件配置 http-response ^https?:\/\/appcloud2\.zhihu\.com\/v\d+\/config requires-body=1,script-path=https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js,tag=知乎_优化软件配置

View File

@ -7,7 +7,7 @@
# 知乎获取黑名单 # 知乎获取黑名单
^https?:\/\/api\.zhihu\.com\/settings\/blocked_users url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/settings\/blocked_users url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.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/zhihu/zhihu_plus.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/zhihu/zhihu_plus.js
# 知乎预置关键词去广告 # 知乎预置关键词去广告
^https?:\/\/api\.zhihu\.com\/search\/preset_words\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js ^https?:\/\/api\.zhihu\.com\/search\/preset_words\? url script-response-body https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/zhihu/zhihu_plus.js
# 优化软件配置 # 优化软件配置
@ -40,8 +40,10 @@
^https?:\/\/www\.zhihu\.com\/api\/v\d+\/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/hybrid\? url reject-dict ^https?:\/\/api\.zhihu\.com/moments/hybrid\? url reject-dict
# 知乎下发的配置,如皮肤等目前已知会导致Tab页管理功能失效 # 知乎下发的配置,如皮肤等
^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config url reject-200 ^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config url reject-200
# 屏蔽知乎“我的”页面推荐开通会员的卡片
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card url reject-200
# hostname = www.zhihu.com,api.zhihu.com,appcloud2.zhihu.com,zhuanlan.zhihu.com # hostname = www.zhihu.com,api.zhihu.com,appcloud2.zhihu.com,zhuanlan.zhihu.com
hostname = *.zhihu.com hostname = *.zhihu.com

View File

@ -6,8 +6,10 @@
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-DROP
[URL Rewrite] [URL Rewrite]
# 知乎下发的配置,如皮肤等目前已知会导致Tab页管理功能失效 # 屏蔽知乎下发的配置,如皮肤等
^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject ^https?:\/\/api\.zhihu\.com\/ab\/api\/v1\/products\/zhihu\/platforms\/ios\/config - reject
# 屏蔽知乎“我的”页面推荐开通会员的卡片
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card - reject
[Map Local] [Map Local]
# 知乎去除最常访问 # 知乎去除最常访问