Created
July 21, 2017 21:41
-
-
Save mandx/c87ccc4b41aa7a358ecd8698c575886a to your computer and use it in GitHub Desktop.
Simple Python 3 script to launch a new, clean Chrome instance
This file contains hidden or 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
from subprocess import run | |
from tempfile import TemporaryDirectory | |
if __name__ == '__main__': | |
with TemporaryDirectory() as tempdir: | |
run([ | |
'google-chrome', | |
'--user-data-dir==' + tempdir, | |
'--incognito', | |
'--no-default-browser-check', | |
'--no-first-run', | |
'--disable-default-apps', | |
'--disable-popup-blocking', | |
'--disable-translate', | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment