How to always open certain app links in Chrome without prompt

Tried and tested technique for macOS:

  1. Have Chrome version > 79
  2. Run the following command in terminal ​

    ​defaults write com.google.Chrome ExternalProtocolDialogShowAlwaysOpenCheckbox -bool true
    
  3. Quit Chrome

  4. Restart Chrome

As of Chrome 79, you can edit use a custom policy to get this behavior back: https://cloud.google.com/docs/chrome-enterprise/policies/?policy=ExternalProtocolDialogShowAlwaysOpenCheckbox

@abhishek-ranjan answer provides the way to do it on macOS.

On Windows:

  1. Open regedit
  2. Either under HKEY_LOCAL_MACHINE (for everyone using the computer) or HKEY_CURRENT_USER (only the current user), create the following key(s) as necessary: Software\Policies\Google\Chrome
  3. Create a REG_DWORD named ExternalProtocolDialogShowAlwaysOpenCheckbox and set the value to 1
  4. Restart Chrome

If you want a regedit script to do this, see https://bugs.chromium.org/p/chromium/issues/detail?id=1013598#c24