Table of contents
  1. Chromium Docs
    1. URIs of interest
      1. get profile info
      2. get profile settings
      3. flags
      4. url list
      5. ?
      6. browser apps
  2. Extensions
    1. File Locations
      1. Extension ID can be found at chrome://extensions (with Developer Mode enabled)
  3. CLI
    1. MacOS
      1. Open Chrome from the terminal
        1. open a specific URL in Chrome:
        2. using specified UserProfile
        3. open and create a new profile
        4. script to run Chrome with given profile, selected by the user-friendly profile name (rather than the profile directory name)
          1. chrome_profiles_list
    2. Windows
      1. Open
      2. open no address bar
      3. Kill all instances
      4. runas admin
      5. incognito
      6. at specific site
    3. Run With Switches
      1. Exit any running-instance of Chrome.
      2. Some Switches
  4. Resources




Chromium Docs

URIs of interest

get profile info

chrome://version/

get profile settings

chrome://profile-internals/

flags

chrome://flags/

url list

chrome://chrome-urls/
chrome://about/

?

chrome://proximity-auth

browser apps

paint app that you can use to draw with.

https://canvas.apps.chrome

Screen recording app that only works on Chrome OS. Sort of like Windows step recorder.

https://screencast.apps.chrome

Note-taking app that can use handwriting.

https://cursive.apps.chrome

Extensions

File Locations

  • Windows XP:
    • C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default\Extensions\<Extension ID>
  • Windows 10/8/7/Vista:
    • C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Extensions\<Extension ID>
  • macOS:
    • ~/Library/Application Support/Google/Chrome/Default/Extensions/<Extension ID>
  • Linux
    • ~/.config/google-chrome
      The ~/.config portion of the default location can be overridden by $CHROME_CONFIG_HOME (since M61) or by $XDG_CONFIG_HOME.
      Note that $XDG_CONFIG_HOME affects all applications conforming to the XDG Base Directory Spec, while $CHROME_CONFIG_HOME is specific to Chrome and Chromium.

Extension ID can be found at chrome://extensions (with Developer Mode enabled)

Linux: ~/.config/google-chrome/Default/Extensions/<Extension ID>

Ubuntu: ~/.config/google-chrome/Default/Extensions

Chrome OS: /home/chronos/Extensions/<Extension ID>

You can copy the extension folder and drop it on a USB or in a network drive.

To install

  1. Open Chrome and go to chrome://extensions
  2. Make sure Developer Mode is checked.
  3. Click Load Unpacked Extension…
  4. Find your copied directory and click Open.

CLI

MacOS

Open Chrome from the terminal

open -a "Google Chrome"
  • open a specific URL in Chrome:

    This will open the Google homepage in Chrome.

          open -a "Google Chrome" "https://www.google.com"
    
  • using specified UserProfile

    open -a "Google Chrome" --args --profile-directory=Default
    
  • open and create a new profile

    open -n -a "Google Chrome" --args --user-data-dir=$(mktemp -d)
    
  • script to run Chrome with given profile, selected by the user-friendly profile name (rather than the profile directory name)

         #!/bin/bash -eua
         profile_name=$1; shift
         local_state=~/Library/Application\ Support/Google/Chrome/Local\ State
         profile_key=`< "$local_state" jq -r '
                 .profile.info_cache | to_entries | .[] |
                 select(.value.name == env.profile_name) | .key'`
         [ -n "$profile_key" ]
         open -a "Google Chrome" --args --profile-directory="$profile_key" "$@"
    

    example usage: chrome_profile "Profile Name" https://google.com/

    • chrome_profiles_list
           < ~/Library/Application\ Support/Google/Chrome/Local\ State \
           jq -r '.profile.info_cache | to_entries | map(.key + ": " + .value.name) | .[]' |
           sort -k1,1 -k2,2n
      

Windows

Open

start chrome

open no address bar

 start chrome --app="http://www.youtube.com/"

Kill all instances

taskkill /F /IM "chrome.exe" /T

or powershell

Stop-Process chrome
Get-Process -Name "chrome" -ErrorAction SilentlyContinue | kill -PassThru

runas admin

runas /user:administrator "C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe"

incognito

start chrome /incognito

at specific site

start chrome www.<websiteURL>.com

Run With Switches

Exit any running-instance of Chrome.

  1. Right-click on your “Chrome” shortcut.
  2. Choose properties.
  3. At the end of your “Target:” line adds the command-line switch. For example:
    --disable-gpu-vsync

With that example flag, it should look like below (replacing --disable-gpu-vsync with any other command-line switch you want to use):

chrome.exe --disable-gpu-vsync

Launch Chrome like normal with the shortcut.

Some Switches

Chromium CommandDescription
–ash-force-desktopForces uses of the desktop version of Chrome
–disable-3d-apisDisables 3D APIs, including WebGL and Pepper 3D
–disable-accelerated-videoDisables GPU accelerated video
–disable-background-modeBackground apps won’t continue to run when Chrome exits.
–disable-gpuDisables hardware acceleration using the GPU
–disable-pluginsPrevents all plugins from running
–disable-plugins-discoveryDisables the discovery of missing plugins
–disable-preconnectDisables speculative TCP/IP preconnections
–disable-translateDisables the Google Translate feature
–dns-prefetch-disableDisable DNS prefetching
–enable-kiosk-modeKiosk Mode for Chrome OS
–incognitoLaunches Chrome directly in Incognito private browsing mode
–media-cache-sizeDisk space used by media cache in bytes
–multi-profilesEnable multiple profiles in Chrome
–new-profile-managementEnable the new profile management in Chrome
–no-experimentsRun Chrome without experiments set in chrome://flags
–no-pingsNo hyperlink auditing pings
–no-referrersUse Chrome without sending referrers
–purge-memory-buttonAdd purge memory button to Chrome
–reset-variation-stateChange the field trials that the browser is currently signed up for
–restore-last-sessionRestore the last session on run
–ssl-version-minSpecify the minimum SSL version accepted
–start-maximizedStarts the Chrome window maximized.
–window-positionSpecify the initial window position using –window-position=x,y
–window-sizeSpecify the initial window size using –window-size=x,y

Resources