From 72132239a5b8bf8a83aca8666f5b5ad16f3d2e6a Mon Sep 17 00:00:00 2001 From: Blu3train Date: Sat, 30 Apr 2022 10:13:24 +0200 Subject: [PATCH] new browser size setting for DeepL blocking in hidden mode --- extensions/devtools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/devtools.cpp b/extensions/devtools.cpp index b2b560d..bcf677b 100644 --- a/extensions/devtools.cpp +++ b/extensions/devtools.cpp @@ -36,11 +36,11 @@ namespace if (process) DevTools::Close(); auto args = FormatString( - L"%s --proxy-server=direct:// --disable-extensions --disable-gpu --user-data-dir=\"%s\\devtoolscache\" --remote-debugging-port=9222", + L"%s --proxy-server=direct:// --disable-extensions --disable-gpu --no-first-run --user-data-dir=\"%s\\devtoolscache\" --remote-debugging-port=9222", chromePath, std::filesystem::current_path().wstring() ); - if (headless) args += L" --headless"; + args += headless ? L" --window-size=1920,1080 --headless" : L" --window-size=850,900"; DWORD exitCode = 0; STARTUPINFOW DUMMY = { sizeof(DUMMY) }; PROCESS_INFORMATION processInfo = {};