Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.