Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2012 03:36
Show Gist options
  • Save anonymous/4334192 to your computer and use it in GitHub Desktop.
Save anonymous/4334192 to your computer and use it in GitHub Desktop.
bookmarklet to open current IE page in Chrome using protocol handler, chrome2://
REGEDIT4
[HKEY_CLASSES_ROOT\chrome2]
@="URL:Chrome Protocol Helper"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\chrome2\DefaultIcon]
@="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe,0"
[HKEY_CLASSES_ROOT\chrome2\shell]
@="open"
[HKEY_CLASSES_ROOT\chrome2\shell\open]
[HKEY_CLASSES_ROOT\chrome2\shell\open\command]
@="C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -NoProfile -Command \"& { param([string]$url); &'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe' -- ('\\\"{0}\\\"' -f $url.Substring(10)) } '%1'\""
// create a bookmark with the URL: javascript:document.location=("chrome2://"+document.location)
document.location=("chrome2://"+document.location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment