Refactor registration flow, update config, replace Turnstile patch

- Major refactor of grok_register_ttk.py: improved flow, error handling, logging
- Update config.example.json and config.json with new fields
- Replace turnstilePatch/content.js with new script.js approach
- Update start.sh for better Chromium/Turnstile handling
- Remove deprecated turnstilePatch/content.js
This commit is contained in:
chaos committed 2026-07-12 14:44:02 +08:00
1 parent 7a02453601
commit c87b01967f
7 files changed
+794 -425

No files matched your search

+4 -4
View File
@@ -99,14 +99,14 @@
"turnstile_retry_limit": 3,
"// turnstile_stuck_timeout": "Turnstile 卡住判定超时(秒)",
"turnstile_stuck_timeout": 150,
"// turnstile_fast_fail_count": "资料页内连续 getTurnstileToken 失败几次后放弃(服务器建议 4)",
"turnstile_fast_fail_count": 4,
"// turnstile_fast_fail_count": "资料页内连续 getTurnstileToken 失败几次后放弃(参考 Git-creat7 建议 3)",
"turnstile_fast_fail_count": 3,
"// turnstile_retry_after_sec": "资料页等待 CF 多久后触发二次复用(秒)",
"turnstile_retry_after_sec": 12,
"// turnstile_retry_gap_sec": "两次二次复用之间的最小间隔(秒)",
"turnstile_retry_gap_sec": 8,
"// turnstile_max_rounds": "单次 getTurnstileToken 内 click/poll 轮数",
"turnstile_max_rounds": 8,
"// turnstile_max_rounds": "单次 getTurnstileToken 内 reset+click 轮数(参考 15-20)",
"turnstile_max_rounds": 16,
"// sso_timeout_base / sso_timeout_max / sso_progress_extension": "等待 sso cookie 的基础/上限/有进度时延长(秒)",
"sso_timeout_base": 240,
"sso_timeout_max": 480,