mirror of
https://github.com/Giu-zhao/ios_rule_script
synced 2024-11-26 02:18:26 +08:00
[知乎助手]可以在BoxJS中配置屏蔽关键词
This commit is contained in:
parent
9aaaebd0fd
commit
a3a111b969
@ -34,6 +34,24 @@
|
|||||||
"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": ["https://raw.githubusercontent.com/Orz-3/mini/master/Alpha/bilibili.png", "https://raw.githubusercontent.com/Orz-3/mini/master/Color/bilibili.png"]
|
"icons": ["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",
|
||||||
|
"name": "嘀嗒出行",
|
||||||
|
"keys": ["dida_cid", "dida_cookie", "dida_useragent", "dida_access_token"],
|
||||||
|
"author": "@blackmatrix7",
|
||||||
|
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/didachuxing",
|
||||||
|
"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"],
|
||||||
|
"script": "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/didachuxing/didachuxing_plus.js"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "blackmatrix7.didichuxing",
|
||||||
|
"name": "滴滴出行",
|
||||||
|
"keys": ["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",
|
||||||
|
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/didichuxing",
|
||||||
|
"icons": ["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"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "blackmatrix7.dingdong",
|
"id": "blackmatrix7.dingdong",
|
||||||
"name": "叮咚买菜",
|
"name": "叮咚买菜",
|
||||||
@ -140,7 +158,11 @@
|
|||||||
"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": ["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"],
|
"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"],
|
||||||
"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>"],
|
"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>"
|
||||||
|
],
|
||||||
"scripts": [
|
"scripts": [
|
||||||
{
|
{
|
||||||
"name": "知乎助手数据清理",
|
"name": "知乎助手数据清理",
|
||||||
@ -232,6 +254,13 @@
|
|||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"desc": "知乎7.x及以上版本无效"
|
"desc": "知乎7.x及以上版本无效"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "zhihu_keyword_block",
|
||||||
|
"name": "知乎屏蔽关键词",
|
||||||
|
"val": "",
|
||||||
|
"type": "textarea",
|
||||||
|
"desc": "必须是JSON格式,Key为用户Id,不要修改。格式不正确可能导致执行异常。"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "magicjs_loglevel",
|
"id": "magicjs_loglevel",
|
||||||
"name": "日志等级",
|
"name": "日志等级",
|
||||||
@ -250,6 +279,10 @@
|
|||||||
"key": "ERROR",
|
"key": "ERROR",
|
||||||
"label": "ERROR"
|
"label": "ERROR"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "CRITICAL",
|
||||||
|
"label": "CRITICAL"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "DEBUG",
|
"key": "DEBUG",
|
||||||
"label": "DEBUG"
|
"label": "DEBUG"
|
||||||
@ -299,6 +332,35 @@
|
|||||||
"placeholder": "",
|
"placeholder": "",
|
||||||
"autoGrow": true,
|
"autoGrow": true,
|
||||||
"desc": "除非无法正常获取Sid,否则保持现在的值,不要修改"
|
"desc": "除非无法正常获取Sid,否则保持现在的值,不要修改"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "magicjs_loglevel",
|
||||||
|
"name": "日志等级",
|
||||||
|
"val": "INFO",
|
||||||
|
"type": "radios",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"key": "INFO",
|
||||||
|
"label": "INFO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "WARNING",
|
||||||
|
"label": "WARNING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ERROR",
|
||||||
|
"label": "ERROR"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "CRITICAL",
|
||||||
|
"label": "CRITICAL"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "DEBUG",
|
||||||
|
"label": "DEBUG"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"desc": "出现异常时请选择DEBUG提交日志"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"author": "@blackmatrix7",
|
"author": "@blackmatrix7",
|
||||||
@ -314,21 +376,50 @@
|
|||||||
{
|
{
|
||||||
"id": "blackmatrix7.applestore",
|
"id": "blackmatrix7.applestore",
|
||||||
"name": "AppleStore",
|
"name": "AppleStore",
|
||||||
"keys": ["iphone_model", "apple_store_region", "applestore_bark_url", "iphone_stock"],
|
"keys": ["goods_model", "applestore_region", "applestore_bark_url", "applestore_stock", "onlinestore_stock"],
|
||||||
"author": "@blackmatrix7",
|
"author": "@blackmatrix7",
|
||||||
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/applestore",
|
"repo": "https://github.com/blackmatrix7/ios_rule_script/tree/master/script/applestore",
|
||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
"id": "iphone_model",
|
"id": "applestore_type",
|
||||||
"name": "iPhone型号",
|
"name": "商店类型",
|
||||||
"val": "",
|
"val": "APPLESTORE",
|
||||||
"type": "input",
|
"type": "radios",
|
||||||
"placeholder": "MLDE3CH/A;MLDG3CH/A",
|
"items": [
|
||||||
"autoGrow": true,
|
{
|
||||||
"desc": "需要监控的iPhone型号,多款以;分隔,移动端建议只监控一个"
|
"key": "AppleStore零售店",
|
||||||
|
"label": "INFO"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "Apple官网",
|
||||||
|
"label": "WARNING"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "ERROR",
|
||||||
|
"label": "ERROR"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "CRITICAL",
|
||||||
|
"label": "CRITICAL"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "DEBUG",
|
||||||
|
"label": "DEBUG"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"desc": "出现异常时请选择DEBUG提交日志"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "apple_store_region",
|
"id": "goods_model",
|
||||||
|
"name": "商品型号",
|
||||||
|
"val": "",
|
||||||
|
"type": "input",
|
||||||
|
"placeholder": "Z0YQ#MKMR3CH/A,MJXA3FE/A#AppleWatch 7 石墨色不锈钢;MLDE3CH/A",
|
||||||
|
"autoGrow": true,
|
||||||
|
"desc": "需要监控的商品型号,option用#分隔,自定义名称在option后以#分隔。多款以;分隔,移动端建议只监控一个。"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "applestore_region",
|
||||||
"name": "监控地区",
|
"name": "监控地区",
|
||||||
"val": "",
|
"val": "",
|
||||||
"type": "input",
|
"type": "input",
|
||||||
@ -344,12 +435,41 @@
|
|||||||
"placeholder": "https://api.day.app/VXTWvaQ18N29bsQAg7DgkT",
|
"placeholder": "https://api.day.app/VXTWvaQ18N29bsQAg7DgkT",
|
||||||
"autoGrow": true,
|
"autoGrow": true,
|
||||||
"desc": "使用Bark推送到其他设备,比如iPad执行监控,推送结果到iPhone"
|
"desc": "使用Bark推送到其他设备,比如iPad执行监控,推送结果到iPhone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "applestore_settings_notify_soldout",
|
||||||
|
"name": "查询无货也进行通知",
|
||||||
|
"val": false,
|
||||||
|
"type": "boolean",
|
||||||
|
"desc": "可能会发起大量推送,建议仅在测试时开启"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"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提交日志"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icons": [
|
"icons": ["https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/applestore/icon/applestore_dark.png", "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/applestore/icon/applestore.png"]
|
||||||
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/applestore/icon/applestore_dark.png",
|
|
||||||
"https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/applestore/icon/applestore.png"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -37,12 +37,12 @@
|
|||||||
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. ~~屏蔽推荐页中的盐选推荐内容~~❓
|
||||||
33. 拦截知乎下发的配置,如皮肤(alpha)✨❓
|
33. ~~拦截知乎下发的配置,如皮肤(alpha)~~✨❓
|
||||||
34. 减少推荐页内的视频(alpha)✨❓
|
34. ~~减少推荐页内的视频(alpha)~~✨❓
|
||||||
35. 去除推荐页的付费推荐内容✨❓
|
35. ~~去除推荐页的付费推荐内容~~✨❓
|
||||||
|
|
||||||
## 最近更新
|
## 最近更新
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ Lite版本请确保所有Plus版本的选项都为关闭状态,以减少不必
|
|||||||
|
|
||||||
此功能并非真正解锁会员特权,只是借用知乎APP的操作界面,通过脚本实现的关键词屏蔽。如果你已经是尊贵的盐选会员,建议关闭此功能,使用盐选会员自带的关键词屏蔽。
|
此功能并非真正解锁会员特权,只是借用知乎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%;" />
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@
|
|||||||
# 知乎去广告
|
# 知乎去广告
|
||||||
DOMAIN,118.89.204.198,REJECT
|
DOMAIN,118.89.204.198,REJECT
|
||||||
IP-CIDR,118.89.204.198/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-DROP,no-resolve
|
IP-CIDR6,2402:4e00:1200:ed00:0:9089:6dac:96b6/128,REJECT,no-resolve
|
||||||
DOMAIN,appcloud2.in.zhihu.com,REJECT
|
DOMAIN,appcloud2.in.zhihu.com,REJECT
|
||||||
DOMAIN,mqtt.zhihu.com,REJECT
|
DOMAIN,mqtt.zhihu.com,REJECT
|
||||||
DOMAIN,sugar.zhihu.com,REJECT
|
DOMAIN,sugar.zhihu.com,REJECT
|
||||||
@ -40,6 +40,8 @@ URL-REGEX,^https?:\/\/www\.zhihu\.com\/api\/v\d+\/brand\/question/\d+/card\?,REJ
|
|||||||
^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
|
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card - reject-200
|
||||||
|
# 知乎去除Tab页关注人头像
|
||||||
|
^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 - reject-dict
|
||||||
|
|
||||||
[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=知乎_屏蔽关键字解锁
|
||||||
|
@ -44,6 +44,8 @@
|
|||||||
^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
|
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card url reject-200
|
||||||
|
# 知乎去除Tab页关注人头像
|
||||||
|
^https?:\/\/api\.zhihu\.com\/moments\/tab_v2 url reject-dict
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -12,6 +12,8 @@ RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/s
|
|||||||
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card - reject
|
^https?:\/\/api\.zhihu\.com\/people\/self\/new_user_card - reject
|
||||||
|
|
||||||
[Map Local]
|
[Map Local]
|
||||||
|
# 知乎去除Tab页关注人头像
|
||||||
|
^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\/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/master/blank/blank_dict.json"
|
||||||
# 知乎其他广告拦截
|
# 知乎其他广告拦截
|
||||||
|
Loading…
Reference in New Issue
Block a user