mirror of
https://github.com/yeongpin/cursor-free-vip.git
synced 2025-08-02 20:47:35 +08:00
Update block_domain.txt to include corhash.net and mailshou.com; modify new_signup.py and new_tempemail.py to conditionally set the --no-sandbox argument for Linux platforms.
This commit is contained in:
parent
816a09d4de
commit
ffff3bdeb1
@ -17,4 +17,6 @@ mailpull.com
|
||||
drewzen.com
|
||||
begemail.com
|
||||
dugmail.com
|
||||
solerbe.net
|
||||
solerbe.net
|
||||
corhash.net
|
||||
mailshou.com
|
@ -203,9 +203,10 @@ def setup_driver(translator=None):
|
||||
# Use incognito mode
|
||||
co.set_argument("--incognito")
|
||||
|
||||
# Set random port
|
||||
co.set_argument("--no-sandbox")
|
||||
|
||||
if sys.platform == "linux":
|
||||
# Set random port
|
||||
co.set_argument("--no-sandbox")
|
||||
|
||||
# Set random port
|
||||
co.auto_port()
|
||||
|
||||
|
@ -107,7 +107,9 @@ class NewTempEmail:
|
||||
# 创建浏览器选项
|
||||
co = ChromiumOptions()
|
||||
co.set_argument("--headless=new")
|
||||
co.set_argument("--no-sandbox")
|
||||
|
||||
if sys.platform == "linux":
|
||||
co.set_argument("--no-sandbox")
|
||||
|
||||
|
||||
co.auto_port() # 自动设置端口
|
||||
|
Loading…
x
Reference in New Issue
Block a user