Skip to content

Instantly share code, notes, and snippets.

@luukverhoeven
Created October 30, 2022 10:46
Show Gist options
  • Save luukverhoeven/fe7610c0ab4a9a9d47e62e7f0f8ff381 to your computer and use it in GitHub Desktop.
Save luukverhoeven/fe7610c0ab4a9a9d47e62e7f0f8ff381 to your computer and use it in GitHub Desktop.
Brave starter
#!/bin/bash
TEMPDIR=`mktemp -d`
open -na "Brave Browser Beta" --args \
--allow-insecure-localhost \
--autoplay-policy=document-user-activation-required \
--autoplay-policy=no-user-gesture-required \
--bypass-app-banner-engagement-checks \
--dbus-stub \
--disable-audio-output \
--disable-background-networking \
--disable-brave-extension \
--disable-breakpad \
--disable-bundled-ppapi-flash \
--disable-crash-reporter \
--disable-default-apps \
--disable-extensions \
--disable-features=ChromeWhatsNewUI \
--disable-features=DialMediaRouteProvider \
--disable-file-system \
--disable-infobars \
--disable-ios-password-suggestions \
--disable-ipc-flooding-protection \
--disable-media-session-api \
--disable-new-zip-unpacker \
--disable-notifications \
--disable-notifications \
--disable-permissions-api \
--disable-plugins-discovery \
--disable-prerender-local-predictor \
--disable-presentation-api \
--disable-save-password-bubble \
--disable-settings-window \
--disable-speech-api \
--disable-sync \
--disable-web-security \
--disable-xss-auditor \
--disk-cache-size=0 \
--enable-crashpad \
--enable-tab-audio-muting \
--extensions-on-chrome-urls \
--incognito \
--ignore-certificate-errors \
--ignore-urlfetcher-cert-requests \
--lang=EN \
--media-cache-size=0 \
--no-default-browser-check \
--no-events \
--no-experiments \
--no-first-run \
--no-pings \
--no-service-autorun \
--no-zygote \
--noerrdialogs \
--overscroll-history-navigation=0 \
--remember-cert-error-decisions \
--remote-debugging-port=0 \
--silent-debugger-extension-api \
--site-per-process \
--suppress-message-center-popups \
--use-fake-device-for-media-stream \
--use-mock-keychain \
--user-data-dir=$TEMPDIR \
--window-size=1500,800 \
--url "{query}?id=2"
@luukverhoeven
Copy link
Author

Starter with copy of the original profile

#!/bin/bash
DEFAULTDIR="/Users/luukverhoeven/Library/Application Support/BraveSoftware/Brave-Browser/Default"
TEMPDIR=`mktemp -d`

echo -e "TEMPDIR:"
echo -e $TEMPDIR/

rsync -a --exclude 'Cache' --exclude 'ScriptCache' --exclude 'CacheStorage' --exclude 'IndexedDB' "${DEFAULTDIR}" "${TEMPDIR}/"

open -na "Brave Browser Beta" --args \
--user-data-dir=$TEMPDIR \
--disable-xss-auditor \
--bypass-app-banner-engagement-checks \
 --allow-insecure-localhost \
--disable-notifications \
--disable-infobars \
--disable-popup-blocking \
--disable-features=ChromeWhatsNewUI \
--suppress-message-center-popups \
--ignore-urlfetcher-cert-requests \
--ignore-certificate-errors \
--no-first-run \
--noerrdialogs \
--no-default-browser-check \
--disable-domain-reliability \
--window-size=1500,800 \
--url "{query}?id=2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment