Skip to content

Instantly share code, notes, and snippets.

@revolunet
Created February 22, 2012 11:35
Show Gist options
  • Save revolunet/1884386 to your computer and use it in GitHub Desktop.
Save revolunet/1884386 to your computer and use it in GitHub Desktop.
open chrome window from internet explorer
proto = "openchrome://"
arg1 = WScript.Arguments(0)
url = right(arg1, len(arg1)-len(proto))
set objShell = CreateObject("WScript.Shell")
objShell.run("chrome "+url)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\openchrome]
@="URL:openchrome Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\openchrome\shell]
[HKEY_CLASSES_ROOT\openchrome\shell\open]
[HKEY_CLASSES_ROOT\openchrome\shell\open\command]
@="cscript \"c:\\chrome.vbs\" \"%1\""
@revolunet
Copy link
Author

This is a way to force chrome popup from IE.
1st: execute .reg to register the openchrome protocol
2nd : change your link to use openchrome://http://revolunet.com to open the link in a chrome window

Alternative : use chrome frame

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment