Skip to content

Instantly share code, notes, and snippets.

@infynyxx
Last active February 14, 2020 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infynyxx/9948d9d57b39c99c264574e8c8aec543 to your computer and use it in GitHub Desktop.
Save infynyxx/9948d9d57b39c99c264574e8c8aec543 to your computer and use it in GitHub Desktop.
Start chrome in stateless mode
#!/bin/bash
set -e
# ~/bin/chrome-new
TMPDIR=`mktemp -d /tmp/chrome-XXXXX`
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=$TMPDIR --no-first-run --autoplay-policy=no-user-gesture-required --no-make-default-browser "$@"
rm -rf $TMPDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment