Created
January 18, 2020 01:15
-
-
Save krisselden/0521800a267865835e2edb355d42ec1b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# check for CHROME_PATH env or just default | |
cmd=${CHROME_PATH:-$HOME/chromium/src/out/Default/Chromium.app/Contents/MacOS/Chromium} | |
if [ -z "$1" ] | |
then | |
echo "Usage: `basename $0` [url]" | |
exit 1 | |
fi | |
user_data=`mktemp -d -t profile` | |
"$cmd" --user-data-dir="$user_data" \ | |
--no-sandbox \ | |
--no-first-run \ | |
--disable-default-apps \ | |
--no-default-browser-check \ | |
--disable-features=TranslateUI \ | |
--disable-background-networking \ | |
--metrics-recording-only \ | |
--disable-component-extensions-with-background-pages \ | |
--disable-sync \ | |
--disable-best-effort-tasks \ | |
--disable-client-side-phishing-detection \ | |
--disable-component-update \ | |
--disable-renderer-backgrounding \ | |
--disable-backgrounding-occluded-windows \ | |
--disable-background-timer-throttling \ | |
--disable-ipc-flooding-protection \ | |
--disable-hang-monitor \ | |
--deny-permission-prompts \ | |
--noerrdialogs \ | |
--autoplay-policy=no-user-gesture-required \ | |
--disable-popup-blocking \ | |
--disable-prompt-on-repost \ | |
--disable-search-geolocation-disclosure \ | |
--password-store=basic \ | |
--use-mock-keychain \ | |
--force-color-profile=srgb \ | |
--js-flags="--trace-turbo --trace-turbo-graph --redirect-code-traces --print-all-code" "$1" | |
rm -rf "$user_data" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment