mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-08-09 15:06:36 +02:00
meh
This commit is contained in:
10
V6.py
10
V6.py
@ -27,15 +27,15 @@ def firefox_driver(mobile=False, headless=False):
|
||||
)
|
||||
chrome_options = webdriver.ChromeOptions()
|
||||
if mobile:
|
||||
chrome_options.add_argument(f"--user-agent={PC_USER_AGENT}")
|
||||
else :
|
||||
chrome_options.add_argument(f"--user-agent={MOBILE_USER_AGENT}")
|
||||
else :
|
||||
chrome_options.add_argument(f"--user-agent={PC_USER_AGENT}")
|
||||
# disabled as it may cause detection
|
||||
if g.proxy_enabled:
|
||||
PROXY = f"{g.proxy_address}:{g.proxy_port}" # IP:PORT or HOST:PORT
|
||||
chrome_options.add_argument(f'--proxy-server={PROXY}')
|
||||
driver = uc.Chrome(options=chrome_options)
|
||||
set_language()
|
||||
set_language(driver)
|
||||
return(driver)
|
||||
|
||||
|
||||
@ -825,9 +825,9 @@ def CustomStart():
|
||||
|
||||
|
||||
if g.vnc_enabled :
|
||||
display = SmartDisplay(backend="xvnc", size=(2160, 2160), rfbport=g.vnc_port, color_depth=24)
|
||||
display = SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=g.vnc_port, color_depth=24)
|
||||
else :
|
||||
display = SmartDisplay(size=(2160, 2160))
|
||||
display = SmartDisplay(size=(1920, 1080))
|
||||
display.start()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user