From ba6369699c272ccb3a66a01f59fe07787f82f6af Mon Sep 17 00:00:00 2001 From: qtaxm <17772864223@163.com> Date: Wed, 8 Apr 2026 11:40:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20v4.1=20=E4=BF=AE=E5=A4=8D=E5=94=AE?= =?UTF-8?q?=E7=BD=84=E6=8C=89=E9=92=AE/=E6=94=AF=E4=BB=98=E5=BC=B9?= =?UTF-8?q?=E7=AA=97/match=E8=A7=84=E5=88=99=E7=AD=899=E9=A1=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++++++++++++++++ glm-rush-v4.user.js | 4 ++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c2575c1..566914f 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,34 @@ - 建议在抢购开始前 3 秒点击 **预热** 按钮 - 如果支付弹窗未出现,脚本会自动尝试多种恢复策略 +## 更新日志 + +### v4.1 (2026-04-08) +- **修复** 售罄状态下按钮不可点击的问题(恢复全局 JSON.parse patch) +- **修复** 支付弹窗不弹出的问题(4 层恢复策略:清弹窗→缓存重点击→获取支付链接→兜底提醒) +- **修复** `@match` 规则不匹配 `bigmodel.cn`(无 www)的问题 +- **修复** 原型链污染风险(Object.keys + WeakSet 循环引用保护) +- **修复** HTTP 401/403 会话过期检测(之前永远不会触发) +- **修复** 限流退避使用错误的计数器 +- **修复** stats.errors 永远显示 0 +- **修复** Alt+H 快捷键在 Shadow DOM 中失效 +- **修复** `_glmShadow` 暴露在全局作用域 + +### v4.0 (2026-04-08) +- 并发重试(3 路 Promise.race) +- 自适应间隔(爆发→快速→随机抖动) +- 反检测(定向拦截、toString 伪装、Shadow DOM) +- 高精度定时(rAF + performance.now) +- 配置/请求持久化(localStorage + sessionStorage) +- MutationObserver 弹窗监控 +- TCP 预热、快捷键、离开保护 + +### v3.2 (原版) +- 单线程串行重试 +- preview + check 双重校验 +- 错误弹窗自动恢复 +- 浮动控制面板 + ## License MIT diff --git a/glm-rush-v4.user.js b/glm-rush-v4.user.js index f0f3ab1..49e15f8 100644 --- a/glm-rush-v4.user.js +++ b/glm-rush-v4.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name 智谱 GLM Coding 抢购助手 v4.0 // @namespace http://tampermonkey.net/ -// @version 4.0 +// @version 4.1 // @description 并发重试 + 自适应间隔 + 反检测 + check校验 + 弹窗恢复 + 定时触发 + 配置持久化 // @author Assistant // @match *://www.bigmodel.cn/* @@ -706,7 +706,7 @@ .keys{font-size:10px;color:#636e72;text-align:center;margin-top:6px}
-
GLM v4.0
+
GLM v4.1
等待中
${state.captured ? '已恢复上次捕获的请求' : '请先点一次购买按钮'}