diff --git a/script/boxjs.json b/script/boxjs.json index 5f71b984f04..fddc0d26e72 100644 --- a/script/boxjs.json +++ b/script/boxjs.json @@ -181,6 +181,20 @@ "type": "boolean", "desc": "非会员用户显示为盐选会员" }, + { + "id": "zhihu_settings_app_conf", + "name": "软件配置优化", + "val": false, + "type": "boolean", + "desc": "对下发的软件配置进行一些调整" + }, + { + "id": "zhihu_settings_remove_live_tab", + "name": "移除推荐页强制标签", + "val": false, + "type": "boolean", + "desc": "强制移除推荐页的强制标签,需配置移除的标签,并开启“软件配置优化”" + }, { "id": "zhihu_settings_blocked_keywords", "name": "推荐页关键词过滤", @@ -316,6 +330,13 @@ "val": "", "type": "input", "desc": "用于解锁更多功能。示例 http://192.168.1.200:52273 。" + }, + { + "id": "zheye_remove_feed_tabs", + "name": "强制移除指定推荐页标签", + "val": "", + "type": "input", + "desc": "每个标签以;分隔,如“直播;科学”" } ] }, diff --git a/script/zheye/zheye.lnplugin b/script/zheye/zheye.lnplugin index c89d501a0e0..a63873c41b0 100644 --- a/script/zheye/zheye.lnplugin +++ b/script/zheye/zheye.lnplugin @@ -61,6 +61,7 @@ http-request ^https?:\/\/api\.zhihu\.com\/feed-root\/block script-path=https://g # 优化软件配置 - 优化下发的配置文件来实现某些效果 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=哲也_修改用户盐值 diff --git a/script/zheye/zheye.sgmodule b/script/zheye/zheye.sgmodule index dcbdce018de..d7b65308615 100644 --- a/script/zheye/zheye.sgmodule +++ b/script/zheye/zheye.sgmodule @@ -57,6 +57,7 @@ DOMAIN,appcloud2.in.zhihu.com,REJECT # 优化软件配置 - 优化下发的配置文件来实现某些效果 哲也_优化软件配置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 diff --git a/script/zheye/zheye.snippet b/script/zheye/zheye.snippet index 23ebbfa2fb2..994e2cfeb9c 100644 --- a/script/zheye/zheye.snippet +++ b/script/zheye/zheye.snippet @@ -62,6 +62,7 @@ # 优化软件配置 - 优化下发的配置文件来实现某些效果 ^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 diff --git a/script/zheye/zheye.stoverride b/script/zheye/zheye.stoverride index cea1dc425e5..4162a193fdb 100644 --- a/script/zheye/zheye.stoverride +++ b/script/zheye/zheye.stoverride @@ -71,6 +71,12 @@ http: 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