mirror of
https://github.com/OLmatter/glm-coding-helper.git
synced 2026-10-07 15:38:59 +08:00
4 network functions changed to try fetch() first, fallback to GM_xmlhttpRequest: - fetchImageDataUrl - postDirect - serverRequest - fetchCaptchaImageDirect fetch() has no 6-connection limit per domain (unlike GM_xmlhttpRequest), eliminating the bottleneck when multiple windows/iframes hit localhost:8888. GM_xmlhttpRequest is kept as fallback for CORS-restricted contexts. Both userscript copies synced, SHA256 identical, trailing whitespace cleaned.
智谱 GLM Coding Plan 抢购助手用户脚本
这是智谱 GLM Coding Plan 抢购助手的油猴 / Tampermonkey 用户脚本,配合本地 CPU/GPU OCR 后端自动识别中文点选验证码并点击。
安装方式:
- 安装 Tampermonkey。
- 优先打开仓库根目录的
glm-coding-helper.user.js。 - 复制全部内容,新建 Tampermonkey 脚本并保存。
- 启动本地后端:
powershell -ExecutionPolicy Bypass -File scripts\start_backend.ps1 -Mode auto。
这个目录保留给开发和旧路径兼容。普通用户直接看仓库根目录的脚本文件即可。
默认后端地址为:
http://127.0.0.1:8888
脚本默认使用作者内置 GLM Coding Plan 折扣入口;如有需要可自行修改入口参数。
默认不自动关闭无效支付链接/限流弹窗,需要在配置面板里手动开启。
快捷键:
Esc:关闭系统繁忙弹窗或支付弹窗Enter/Space:点击验证码确认按钮