chore: make qx repo generic

This commit is contained in:
2026-05-17 13:12:19 +08:00
parent 612d07a886
commit 655c7be912
5 changed files with 32 additions and 14 deletions
+28 -10
View File
@@ -1,12 +1,12 @@
# QDReader QX Cookie Capture + Autman Sign # Hermes QX Rewrite Scripts
起点读书 / 启点读书 Cookie 抓取脚本。Quantumult X 只负责抓取 Cookie 并弹窗展示完整 Autman 快速提交命令账号保存、备注、签到和最后执行日志由统一 Autman 插件仓库负责。 统一存放 Quantumult X 重写订阅和脚本。当前包含起点读书 / 启点读书 Cookie 抓取:QX 只负责弹窗展示完整 Autman 快速提交命令账号保存、备注、签到和最后执行日志由统一 Autman 插件仓库负责。
## 仓库结构 ## 仓库结构
```text ```text
conf/qdreader.conf # QX 远程重写订阅文本,参考 chickliu/qx 老仓库风格 conf/qdreader.conf # 起点读书 QX 远程重写订阅文本,参考 chickliu/qx 老仓库风格
js/qdreader_cookie.js # QX Rewrite 脚本入口 js/qdreader_cookie.js # 起点读书 QX Rewrite 脚本入口
qx/subscribe/qdreader.subscription.json # 兼容旧订阅地址,内容同 conf/qdreader.conf qx/subscribe/qdreader.subscription.json # 兼容旧订阅地址,内容同 conf/qdreader.conf
qx/subscribe/qdreader.qx.snippet # 兼容旧片段地址,内容同 conf/qdreader.conf qx/subscribe/qdreader.qx.snippet # 兼容旧片段地址,内容同 conf/qdreader.conf
qx/rewrite/qdreader_cookie.js # 兼容旧脚本地址,内容同 js/qdreader_cookie.js qx/rewrite/qdreader_cookie.js # 兼容旧脚本地址,内容同 js/qdreader_cookie.js
@@ -14,25 +14,25 @@ docs/qx-rewrite-lessons.md # 本次制作经验
source/qdreader.upstream.js # 上游 QDReader 脚本备份 source/qdreader.upstream.js # 上游 QDReader 脚本备份
``` ```
## QX 订阅地址 ## 当前订阅地址
推荐使用老仓库风格地址: 起点读书推荐订阅地址:
```text ```text
https://gitea.chickliu.fun/Hermes/qdreader-qx/raw/branch/main/conf/qdreader.conf https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/conf/qdreader.conf
``` ```
兼容旧地址: 兼容旧地址:
```text ```text
https://gitea.chickliu.fun/Hermes/qdreader-qx/raw/branch/main/qx/subscribe/qdreader.subscription.json https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/qx/subscribe/qdreader.subscription.json
``` ```
## 订阅内容 ## 订阅内容
```text ```text
hostname = h5.if.qidian.com hostname = h5.if.qidian.com
^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qdreader-qx/raw/branch/main/js/qdreader_cookie.js ^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/js/qdreader_cookie.js
``` ```
## 使用流程 ## 使用流程
@@ -73,7 +73,25 @@ https://gitea.chickliu.fun/Hermes/autman-plugins/raw/branch/main/js/qdreader_sig
启点签到 启点签到
``` ```
## 制作经验
## 新增其他 QX 重写
以后新的 QX 重写也放在本仓库:
```text
conf/<name>.conf # QX 订阅文本
js/<name>.js # Rewrite 脚本
docs/<name>-notes.md # 可选:制作经验/接口说明
```
订阅文本保持 `chickliu/qx` 老仓库风格:
```text
hostname = example.com
^https:\/\/example\.com\/api url script-request-header https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/js/<name>.js
```
## 新重写制作经验
详见: 详见:
+1 -1
View File
@@ -1,2 +1,2 @@
hostname = h5.if.qidian.com hostname = h5.if.qidian.com
^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qdreader-qx/raw/branch/main/js/qdreader_cookie.js ^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/js/qdreader_cookie.js
+1 -1
View File
@@ -22,7 +22,7 @@ BOSS 常用的远程订阅不是 JSON 对象,而是类似下面的纯文本:
```text ```text
hostname = h5.if.qidian.com hostname = h5.if.qidian.com
^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qdreader-qx/raw/branch/main/js/qdreader_cookie.js ^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/js/qdreader_cookie.js
``` ```
注意:即使文件名叫 `*.json`,只要给 QX 作为重写订阅使用,内容也应该是这种文本格式,而不是 JSON object。 注意:即使文件名叫 `*.json`,只要给 QX 作为重写订阅使用,内容也应该是这种文本格式,而不是 JSON object。
+1 -1
View File
@@ -1,2 +1,2 @@
hostname = h5.if.qidian.com hostname = h5.if.qidian.com
^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qdreader-qx/raw/branch/main/js/qdreader_cookie.js ^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/js/qdreader_cookie.js
+1 -1
View File
@@ -1,2 +1,2 @@
hostname = h5.if.qidian.com hostname = h5.if.qidian.com
^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qdreader-qx/raw/branch/main/js/qdreader_cookie.js ^https:\/\/h5\.if\.qidian\.com\/argus\/api\/v1\/user\/getlogininfo url script-response-body https://gitea.chickliu.fun/Hermes/qx/raw/branch/main/js/qdreader_cookie.js