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

+9 -6
View File
@@ -10,7 +10,7 @@
"proxy": "",
"enable_nsfw": true,
"register_count": 1,
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36",
"grok2api_auto_add_local": false,
"grok2api_local_token_file": "",
"grok2api_pool_name": "ssoBasic",
@@ -46,9 +46,9 @@
"mail_poll_interval": 1,
"mail_retry_count": 3,
"code_form_timeout": 180,
"profile_timeout": 50,
"profile_timeout": 180,
"turnstile_retry_limit": 3,
"turnstile_stuck_timeout": 150,
"turnstile_stuck_timeout": 180,
"sso_timeout_base": 60,
"sso_timeout_max": 480,
"sso_progress_extension": 120,
@@ -98,8 +98,11 @@
"gmail_imap_fallback": true,
"gmail_imap_fallback_timeout_sec": 45,
"gmail_imap_fallback_resend_sec": 10,
"turnstile_fast_fail_count": 4,
"turnstile_retry_after_sec": 12,
"turnstile_fast_fail_count": 3,
"turnstile_retry_after_sec": 10,
"turnstile_retry_gap_sec": 8,
"turnstile_max_rounds": 8
"turnstile_max_rounds": 20,
"browser_prefer": "chrome",
"browser_path": "/usr/bin/google-chrome-stable",
"browser_headless": false
}