feat: Implement Configuration Management and Enhance Browser Setup

- Add `setup_config` function to manage configuration file across platforms
- Extract configuration-related code from `setup_driver` into a separate function
- Implement dynamic Chrome path detection for Windows, macOS, and Linux
- Add configurable Turnstile verification settings
- Update README.md with configuration file details
- Enhance localization support for configuration-related messages
- Improve code maintainability and platform compatibility
This commit is contained in:
yeongpin
2025-03-07 11:18:43 +08:00
parent 6312d66813
commit 02851c9a09
9 changed files with 322 additions and 150 deletions

View File

@@ -1,5 +1,10 @@
# Change Log
## v1.7.01
- Refactoring: Extract configuration-related code from the `setup_driver` function to an independent `setup_config` function
- Optimization: Improve code maintainability and make configuration management and browser settings more clear
- Improvement: The creation and update logic of the configuration file is clearer and more independent
## v1.6.03
1. Hotfix: Small Problem | 修復一些問題