Skip to content

Instantly share code, notes, and snippets.

@happyincent
Last active October 30, 2021 16:53
Show Gist options
  • Save happyincent/8487feaf82f6dad7c078627e80d60957 to your computer and use it in GitHub Desktop.
Save happyincent/8487feaf82f6dad7c078627e80d60957 to your computer and use it in GitHub Desktop.
URL Scheme to open Chrome
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\chromeurl]
@="URL:Google Chrome Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\chromeurl\Shell]
[HKEY_CLASSES_ROOT\chromeurl\Shell\Open]
[HKEY_CLASSES_ROOT\chromeurl\Shell\Open\Command]
@="cmd /V /C \"set \"URL=%1\" && set URL=!URL:^&=^^^&! && set URL=!URL:chromeurl://=! && cmd /c \"start chrome !URL!\" \""
; chromeurl://https://www.google.com/search?q=google&oq=google
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment