disable extensions too

This commit is contained in:
Hongbo Wu 2023-08-02 16:12:24 +08:00
parent 4eab6ea6d2
commit 7641a2567e
2 changed files with 4 additions and 2 deletions

View file

@ -117,13 +117,14 @@ const getBrowserPromise = (async () => {
'--disk-cache-size=33554432',
'--enable-features=SharedArrayBuffer',
'--hide-scrollbars',
'--disable-gpu'
'--disable-gpu',
'--mute-audio',
'--no-default-browser-check',
'--no-pings',
'--no-sandbox',
'--no-zygote',
'--window-size=1920,1080',
'--disable-extensions',
].filter((item) => !!item),
defaultViewport: {
deviceScaleFactor: 1,

View file

@ -112,13 +112,14 @@ async function fetchSource(url, callbackFn) {
'--disk-cache-size=33554432',
'--enable-features=SharedArrayBuffer',
'--hide-scrollbars',
'--disable-gpu'
'--disable-gpu',
'--mute-audio',
'--no-default-browser-check',
'--no-pings',
'--no-sandbox',
'--no-zygote',
'--window-size=1920,1080',
'--disable-extensions',
],
defaultViewport: {
deviceScaleFactor: 1,