Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2012 03:36
Show Gist options
  • Select an option

  • Save anonymous/4334192 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4334192 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Dec 19, 2012.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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'\""
    2 changes: 2 additions & 0 deletions gistfile2.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    // create a bookmark with the URL: javascript:document.location=("chrome2://"+document.location)
    document.location=("chrome2://"+document.location)