Skip to content

Commit

Permalink
Merge pull request #133 from qq254950134/patch-1
Browse files Browse the repository at this point in the history
Update browser_utils.py
  • Loading branch information
chengazhen authored Feb 1, 2025
2 parents 8c4f086 + 3a87a35 commit 7f3b68c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions browser_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def _get_browser_options(self):
except FileNotFoundError as e:
logging.warning(f"警告: {e}")

co.set_user_agent(
os.getenv('BROWSER_USER_AGENT', "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.92 Safari/537.36")
)

co.set_pref("credentials_enable_service", False)
co.set_argument("--hide-crash-restore-bubble")
proxy = os.getenv('BROWSER_PROXY')
Expand Down

0 comments on commit 7f3b68c

Please sign in to comment.