Last active
October 30, 2021 16:53
-
-
Save happyincent/8487feaf82f6dad7c078627e80d60957 to your computer and use it in GitHub Desktop.
URL Scheme to open Chrome
This file contains 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
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