From c81a4ea60a8c0d73fbe7d0b95a5d5a893886e325 Mon Sep 17 00:00:00 2001 From: ceddybi Date: Sun, 4 Feb 2024 20:22:27 -0500 Subject: [PATCH] chrome opts --- src/config/browser.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/config/browser.ts b/src/config/browser.ts index f27643d..4e383c8 100644 --- a/src/config/browser.ts +++ b/src/config/browser.ts @@ -42,7 +42,18 @@ export const getBrowser = async () => { browser = await puppeteer.launch({ headless: false, - args: ["--no-sandbox", "--disable-setuid-sandbox"], + args: [ + '--disable-extensions', + '--disable-gpu', + '--disable-dev-shm-usage', + '--no-sandbox', + // '--single-process', + '--disable-background-timers-throttling', + '--disable-backgrounding-occluded-windows', + '--disable-renderer-backgrounding', + '--disable-web-security', + '--mute-audio', + "--disable-setuid-sandbox"], userDataDir, executablePath: browserPath, });