Skip to content

Commit 558a35f

Browse files
committed
Disable unneeded features of the headless browser
1 parent f097acd commit 558a35f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

graph-visualization/renderVisualizations.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,26 @@ let browser;
119119
*/
120120
(async () => {
121121
console.log("renderVisualizations.js: Starting headless browser...");
122-
browser = await puppeteer.launch({ headless: "new", dumpio: true }); // { headless: false } for testing
122+
browser = await puppeteer.launch({
123+
headless: "new",
124+
dumpio: true,
125+
args: [
126+
"--enable-logging",
127+
"--disable-search-engine-choice-screen",
128+
"--ash-no-nudges",
129+
"--no-first-run",
130+
"--no-default-browser-check",
131+
"--hide-scrollbars",
132+
"--disable-features=Translate",
133+
"--disable-features=InterestFeedContentSuggestions",
134+
"--disable-extensions",
135+
"--disable-default-apps",
136+
"--disable-component-extensions-with-background-pages",
137+
"--disable-client-side-phishing-detection",
138+
"--use-gl=disabled",
139+
"--disable-features=Vulkan",
140+
],
141+
}); // { headless: false } for testing
123142

124143
// Get all *.html files in this (script) directory and its subdirectories
125144
// The separate filter is needed to ignore the "node_modules" directory.

0 commit comments

Comments
 (0)