From 1a26b5237d431b0226cd4f3c952c8f074332701c Mon Sep 17 00:00:00 2001 From: blackmatrix7 <27717518+blackmatrix7@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:32:43 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=93=B2=E4=B9=9F]=20=E5=A2=9E=E5=8A=A0sectio?= =?UTF-8?q?n=E7=9A=84=E5=B1=8F=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/boxjs.json | 21 +++++++++++++++++++++ script/zheye/zheye.lnplugin | 1 + script/zheye/zheye.sgmodule | 1 + script/zheye/zheye.snippet | 1 + script/zheye/zheye.stoverride | 6 ++++++ 5 files changed, 30 insertions(+) diff --git a/script/boxjs.json b/script/boxjs.json index 5f71b984f..fddc0d26e 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 c89d501a0..a63873c41 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 dcbdce018..d7b653086 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 23ebbfa2f..994e2cfeb 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 cea1dc425..4162a193f 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