デフォルトのブラウザを使用してピン留めサイトのショートカットを開く方法(レジストリハック)

Internet Explorer 9で導入されたピン留めサイト機能を使用すると、お気に入りのWebサイトをタスクバーやスタートメニューに追加できます。 IE9では、WebサイトのショートカットをWindows 7のタスクバーにピン留めできることを記事で確認しました。 ピン留めサイトのショートカットをクリックすると、デフォルトとして選択したブラウザに関係なく、Internet Explorerを使用してWebサイトが開きます。 この投稿では、既定のWebブラウザーでピン留めサイトのショートカットを開くことができるレジストリハックを紹介します1

レジストリ編集

pinned-site-browser.zipをダウンロードして解凍し、同梱のREGファイルを実行します。 REGファイルの内容は次のとおりです。

Windows Registry Editor Version 5.00 ;Registry edit to open .Website files with whatever is your default browser ;Ramesh Srinivasan, the Winhelponline Blog ;Created on May 23, 1011 ;Modifed on Feb 17, 2016 ;Works in Windows 7, 8 and 10 [HKEY_CURRENT_USER\Software\Classes\Microsoft.Website\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.website\UserChoice] ;The following line added so as to make this tweak work in 10 [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.website\UserChoice]

Windows Registry Editor Version 5.00 ;Registry edit to open .Website files with whatever is your default browser ;Ramesh Srinivasan, the Winhelponline Blog ;Created on May 23, 1011 ;Modifed on Feb 17, 2016 ;Works in Windows 7, 8 and 10 [HKEY_CURRENT_USER\Software\Classes\Microsoft.Website\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.website\UserChoice] ;The following line added so as to make this tweak work in 10 [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.website\UserChoice]

Windows Registry Editor Version 5.00 ;Registry edit to open .Website files with whatever is your default browser ;Ramesh Srinivasan, the Winhelponline Blog ;Created on May 23, 1011 ;Modifed on Feb 17, 2016 ;Works in Windows 7, 8 and 10 [HKEY_CURRENT_USER\Software\Classes\Microsoft.Website\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.website\UserChoice] ;The following line added so as to make this tweak work in 10 [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.website\UserChoice]

Windows Registry Editor Version 5.00 ;Registry edit to open .Website files with whatever is your default browser ;Ramesh Srinivasan, the Winhelponline Blog ;Created on May 23, 1011 ;Modifed on Feb 17, 2016 ;Works in Windows 7, 8 and 10 [HKEY_CURRENT_USER\Software\Classes\Microsoft.Website\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.website\UserChoice] ;The following line added so as to make this tweak work in 10 [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.website\UserChoice]

Windows Registry Editor Version 5.00 ;Registry edit to open .Website files with whatever is your default browser ;Ramesh Srinivasan, the Winhelponline Blog ;Created on May 23, 1011 ;Modifed on Feb 17, 2016 ;Works in Windows 7, 8 and 10 [HKEY_CURRENT_USER\Software\Classes\Microsoft.Website\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.website\UserChoice] ;The following line added so as to make this tweak work in 10 [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.website\UserChoice]

$config[ads_text6] not found

Windows Registry Editor Version 5.00 ;Registry edit to open .Website files with whatever is your default browser ;Ramesh Srinivasan, the Winhelponline Blog ;Created on May 23, 1011 ;Modifed on Feb 17, 2016 ;Works in Windows 7, 8 and 10 [HKEY_CURRENT_USER\Software\Classes\Microsoft.Website\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}] [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.website\UserChoice] ;The following line added so as to make this tweak work in 10 [-HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Roaming\OpenWith\FileExts\.website\UserChoice]

これを適用することにより、Microsoft.Websiteファイルタイプ(固定されたショートカット)はインターネットショートカット(.URL)ファイルタイプの設定を継承し、ダブルクリックされた.URLファイルと同じように機能しますが、固定可能機能は保持されます。

1追加情報

ピン留めサイトのショートカットは通常のインターネットショートカット(.URLファイル)に似ていますが、前者はナビゲーションボタンの色、ウィンドウサイズ、ジャンプリストのタスク/カテゴリなどの追加のメタ情報を含めることもできます。これらの追加のメタデータは使用時に無視されますこの記事で説明したレジストリハックを採用した後、サードパーティのブラウザーでピン留めサイトのショートカットを開く。

図1:通常のインターネットショートカットのコンテンツ(.URLファイル)

図2:ピン留めされたサイトのショートカットのコンテンツ(.Website)

ピン留めサイトのショートカットでサポートされているメタ要素の詳細については、MSDN Webサイトの記事「ピン留めサイト:Windows 7デスクトップとInternet Explorer 9の統合」を参照してください。

関連記事