Last active
October 22, 2023 12:06
-
-
Save mjarkk/e0051f53234b6af078159b105f206e96 to your computer and use it in GitHub Desktop.
lauch chrome headless with gui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Make sure to change the /tmp/chrome-data to a emptry direcotry | |
# Make sure to change google-chrome-unstable to youre chrome launch command | |
# This command is mostly coppied from: https://github.com/GoogleChrome/puppeteer/blob/eb7bd9d7d3a7800e9ed3d77a19aaf4336587026c/lib/Launcher.js | |
google-chrome-unstable \ | |
--user-data-dir=/tmp/chrome-data \ | |
--disable-background-networking \ | |
--disable-background-timer-throttling \ | |
--disable-backgrounding-occluded-windows \ | |
--disable-breakpad \ | |
--disable-client-side-phishing-detection \ | |
--disable-default-apps \ | |
--disable-dev-shm-usage \ | |
--disable-extensions \ | |
--disable-features=site-per-process \ | |
--disable-hang-monitor \ | |
--disable-ipc-flooding-protection \ | |
--disable-popup-blocking \ | |
--disable-prompt-on-repost \ | |
--disable-renderer-backgrounding \ | |
--disable-sync \ | |
--disable-translate \ | |
--metrics-recording-only \ | |
--no-first-run \ | |
--safebrowsing-disable-auto-update \ | |
--enable-automation \ | |
--password-store=basic \ | |
--use-mock-keychain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment