Skip to content

Commit

Permalink
put the args back
Browse files Browse the repository at this point in the history
  • Loading branch information
dphiffer committed Apr 26, 2024
1 parent dfbb553 commit 232604c
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions src/collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,43 +105,45 @@ export const collect = async (inUrl: string, args: CollectorOptions) => {
const userDataDir = args.saveBrowserProfile ? join(args.outDir, 'browser-profile') : undefined;
let didBrowserDisconnect = false;

console.log(args.extraChromiumArgs);

const options = {
...defaultPuppeteerBrowserOptions,
// args: [...defaultPuppeteerBrowserOptions.args, ...args.extraChromiumArgs],
args: [
'--no-sandbox',
'--disable-dev-shm-usage',
'--ignore-certificate-errors',
'--autoplay-policy=no-user-gesture-required',
'--allow-running-insecure-content',
'--autoplay-policy=user-gesture-required',
'--disable-background-timer-throttling',
'--disable-component-update',
'--disable-domain-reliability',
'--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process',
'--disable-ipc-flooding-protection',
'--disable-print-preview',
'--disable-dev-shm-usage',
'--disable-setuid-sandbox',
'--disable-site-isolation-trials',
'--disable-speech-api',
'--disable-web-security',
'--disk-cache-size=33554432',
'--enable-features=SharedArrayBuffer',
'--hide-scrollbars',
'--ignore-gpu-blocklist',
'--in-process-gpu',
'--mute-audio',
'--no-default-browser-check',
'--no-first-run',
'--no-pings',
'--no-sandbox',
'--no-zygote',
'--use-gl=angle',
'--use-angle=swiftshader',
'--window-size=1920,1080',
// '--single-process'
],
args: [...defaultPuppeteerBrowserOptions.args, ...args.extraChromiumArgs],
// args: [
// '--no-sandbox',
// '--disable-dev-shm-usage',
// '--ignore-certificate-errors',
// '--autoplay-policy=no-user-gesture-required',
// '--allow-running-insecure-content',
// '--autoplay-policy=user-gesture-required',
// '--disable-background-timer-throttling',
// '--disable-component-update',
// '--disable-domain-reliability',
// '--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process',
// '--disable-ipc-flooding-protection',
// '--disable-print-preview',
// '--disable-dev-shm-usage',
// '--disable-setuid-sandbox',
// '--disable-site-isolation-trials',
// '--disable-speech-api',
// '--disable-web-security',
// '--disk-cache-size=33554432',
// '--enable-features=SharedArrayBuffer',
// '--hide-scrollbars',
// '--ignore-gpu-blocklist',
// '--in-process-gpu',
// '--mute-audio',
// '--no-default-browser-check',
// '--no-first-run',
// '--no-pings',
// '--no-sandbox',
// '--no-zygote',
// '--use-gl=angle',
// '--use-angle=swiftshader',
// '--window-size=1920,1080',
// // '--single-process'
// ],
headless: args.headless,
userDataDir
};
Expand Down

0 comments on commit 232604c

Please sign in to comment.