Change Default Web Browser

Created By: fantac
Last Modified: 10/06/07
Summary: Change Firefox, Maxthon, Opera, IE to default web browserIE
在此提供Internet Explorer的預設登錄值。
引用:
|
Windows Registry Editor Version 5.00 ;將Internet Explorer改成預設遊覽器 ;開啓Internet Explorer的預設遊覽器檢查 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "Check_Associations"="yes" "ShowedCheckBrowser"="yes" [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main] "Check_Associations"="yes" "ShowedCheckBrowser"="yes" [HKEY_CLASSES_ROOT\.htm] ;.htm格式關聯去htmlfile @="htmlfile" [HKEY_CLASSES_ROOT\.html] ;.html格式關聯去htmlfile @="htmlfile" [HKEY_CLASSES_ROOT\.mht] ;.mht格式關聯去mhtmlfile @="mhtmlfile" [HKEY_CLASSES_ROOT\.url] ;.url格式關聯去InternetShortcut @="InternetShortcut" ;將htmlfile預設改回由IE開啓 [HKEY_CLASSES_ROOT\htmlfile\shell] @="opennew" [HKEY_CLASSES_ROOT\htmlfile\shell\opennew] @="&Open" [HKEY_CLASSES_ROOT\htmlfile\shell\opennew\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %1" [HKEY_CLASSES_ROOT\htmlfile\shell\opennew\ddeexec] @="\"%1\",,-1,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\htmlfile\shell\opennew\ddeexec\Application] @="IExplore" [HKEY_CLASSES_ROOT\htmlfile\shell\opennew\ddeexec\IfExec] @="*" [HKEY_CLASSES_ROOT\htmlfile\shell\opennew\ddeexec\Topic] @="WWW_OpenURLNewWindow" ;將mhtmlfile預設改回由IE開啓 [HKEY_CLASSES_ROOT\mhtmlfile\shell] @="opennew" [HKEY_CLASSES_ROOT\mhtmlfile\shell\opennew] @="&Open" [HKEY_CLASSES_ROOT\mhtmlfile\shell\opennew\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %1" [HKEY_CLASSES_ROOT\mhtmlfile\shell\opennew\ddeexec] @="\"file://%1\",,-1,,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\mhtmlfile\shell\opennew\ddeexec\Application] @="IExplore" [HKEY_CLASSES_ROOT\mhtmlfile\shell\opennew\ddeexec\IfExec] @="*" [HKEY_CLASSES_ROOT\mhtmlfile\shell\opennew\ddeexec\Topic] @="WWW_OpenURLNewWindow" ;將.url預設改回由IE開啓 [HKEY_CLASSES_ROOT\InternetShortcut\shell] @="open" [HKEY_CLASSES_ROOT\InternetShortcut\shell\open\command] @="rundll32.exe shdocvw.dll,OpenURL %l" ;以實現MSN/Live的即時通裏的url連結點入可以經由IE開啟 [HKEY_CLASSES_ROOT\CLSID\{0002DF01-0000-0000-C000-000000000046}\LocalServer32] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"" ;將HTTP預設改回由IE開啓 [HKEY_CLASSES_ROOT\HTTP\shell] @="open" [HKEY_CLASSES_ROOT\HTTP\shell\open\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome" [HKEY_CLASSES_ROOT\HTTP\shell\open\ddeexec] @="\"%1\",,-1,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\HTTP\shell\open\ddeexec\Application] @="IExplore" [HKEY_CLASSES_ROOT\HTTP\shell\open\ddeexec\Topic] @="WWW_OpenURL" ;將HTTPS預設改回由IE開啓 [HKEY_CLASSES_ROOT\https\shell] @="open" [HKEY_CLASSES_ROOT\https\shell\open\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec] @="\"%1\",,-1,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Application] @="IExplore" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Topic] @="WWW_OpenURL" ;將FTP預設改回由IE開啓 [HKEY_CLASSES_ROOT\ftp\shell] @="open" [HKEY_CLASSES_ROOT\ftp\shell\open\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec] @="\"%1\",,-1,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Application] @="IExplore" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\ifExec] @="*" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Topic] @="WWW_OpenURL" ;將Gopher預設改回由IE開啓 [HKEY_CLASSES_ROOT\gopher\shell] @="open" [HKEY_CLASSES_ROOT\gopher\shell\open\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" -nohome" [HKEY_CLASSES_ROOT\gopher\shell\open\ddeexec] @="\"%1\",,-1,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\gopher\shell\open\ddeexec\Application] @="IExplore" [HKEY_CLASSES_ROOT\gopher\shell\open\ddeexec\Topic] @="WWW_OpenURL" ;讓開始菜單的預設遊覽器改回成IE [HKEY_CURRENT_USER\Software\Clients\StartMenuInternet] @="IEXPLORE.EXE" [HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet] @="IEXPLORE.EXE" ;新增IE在開始菜單的遊覽器選項 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IEXPLORE.EXE] @="Internet Explorer" "LocalizedString"="@C:\\Program Files\\Internet Explorer\\iexplore.exe,-702" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IEXPLORE.EXE\DefaultIcon] @="C:\\Program Files\\Internet Explorer\\iexplore.exe,0" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IEXPLORE.EXE\InstallInfo] "ReinstallCommand"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,73,00,68,00,6d,00,67,00,72,00,61,00,74,00,65,00,2e,00,65,00,78,00,65,\ 00,20,00,4f,00,43,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,52,00,65,00,\ 69,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,49,00,45,00,00,00 "HideIconsCommand"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,73,00,68,00,6d,00,67,00,72,00,61,00,74,00,65,00,2e,00,65,00,78,00,65,\ 00,20,00,4f,00,43,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,48,00,69,00,\ 64,00,65,00,49,00,45,00,00,00 "ShowIconsCommand"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\ 00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\ 5c,00,73,00,68,00,6d,00,67,00,72,00,61,00,74,00,65,00,2e,00,65,00,78,00,65,\ 00,20,00,4f,00,43,00,49,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,53,00,68,00,\ 6f,00,77,00,49,00,45,00,00,00 "IconsVisible"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\IEXPLORE.EXE\shell\open\command] @="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"" |
From: http://www.pczone.com.tw/vbb3/thread/6/133090/
Opera
在此提供Opera的預設登錄值。
引用:
|
Windows Registry Editor Version 5.00 ;將Opera改成預設遊覽器 ;關閉掉Internet Explorer的預設遊覽器檢查 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "Check_Associations"="no" "ShowedCheckBrowser"="yes" [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main] "Check_Associations"="no" "ShowedCheckBrowser"="yes" [HKEY_CLASSES_ROOT\.htm] ;.htm格式關聯去DefaultHTML @="DefaultHTML" [HKEY_CLASSES_ROOT\.html] ;.html格式關聯去DefaultHTML @="DefaultHTML" [HKEY_CLASSES_ROOT\.mht] ;.mht格式關聯去mhtmlfile @="mhtmlfile" [HKEY_CLASSES_ROOT\.url] ;.url格式關聯去InternetShortcut @="InternetShortcut" ;將DefaultHTML預設改成由Opera開啓 ;shell就是滑鼠>右鍵的顯示出來的菜單 ;將shell設成Opera就是指定Firefox放在選單的第一個位置以讓.htm .html文件可以由Opera直接開啟 ;由於將Maxthon、Firefox、Opera共用DefaultHTML的關係,所以在.htm .html右鍵上會看到Opera、Firefox、Maxthon的選項 ;這時如果Firefox、Maxthon不是預設遊覽器,也可以經由右鍵>選擇Firefox、Maxthon開啓.htm .html ;Opera\command 就是指定由程式的開啟,程式名的後面 %1 意思就是要開啟可變動的文件 [HKEY_CLASSES_ROOT\DefaultHTML] @="HTML Document" [HKEY_CLASSES_ROOT\DefaultHTML\shell] @="Opera" [HKEY_CLASSES_ROOT\DefaultHTML\shell\Opera\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" ;將mhtmlfile預設改成由Opera開啓 [HKEY_CLASSES_ROOT\mhtmlfile\shell] @="Opera" [HKEY_CLASSES_ROOT\mhtmlfile\shell\Opera\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" ;將InternetShortcut預設改成由Opera開啓 [HKEY_CLASSES_ROOT\InternetShortcut\shell] @="Opera" [HKEY_CLASSES_ROOT\InternetShortcut\shell\Opera\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" ;以實現MSN/Live的即時通裏的url連結點入可以經由Opera開啟 ;要注意如果更新過MSN/Live即時通的話可能會被改回由IE開啟 [HKEY_CLASSES_ROOT\CLSID\{0002DF01-0000-0000-C000-000000000046}\LocalServer32] @="\"C:\\Program Files\\Opera\\Opera.exe\"" ;將HTTP預設改成由Opera開啓 [HKEY_CLASSES_ROOT\HTTP\shell] @="Opera" [HKEY_CLASSES_ROOT\HTTP\shell\Opera\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" ;將HTTPS預設改成由Opera開啓 [HKEY_CLASSES_ROOT\https\shell] @="Opera" [HKEY_CLASSES_ROOT\https\shell\Opera\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" ;將FTP預設改成由Opera開啓 [HKEY_CLASSES_ROOT\ftp\shell] @="Opera" [HKEY_CLASSES_ROOT\ftp\shell\Opera\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" ;將Gopher預設改成由Opera開啓 [HKEY_CLASSES_ROOT\gopher\shell] @="Opera" [HKEY_CLASSES_ROOT\gopher\shell\Opera\command] @="\"C:\\Program Files\\Opera\\Opera.exe\" \"%1\"" ;讓開始菜單的預設遊覽器改成Opera [HKEY_CURRENT_USER\Software\Clients\StartMenuInternet] @="Opera.exe" [HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet] @="Opera.exe" ;新增Opera在開始菜單的遊覽器選項 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe] @="Opera" "LocalizedString"="Opera" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\DefaultIcon] @="C:\\Program Files\\Opera\\Opera.exe,0" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\InstallInfo] "ReinstallCommand"="C:\\Program Files\\Opera\\Opera.exe /ReInstallBrowser" "HideIconsCommand"="C:\\Program Files\\Opera\\Opera.exe /HideIconsCommand" "ShowIconsCommand"="C:\\Program Files\\Opera\\Opera.exe /ShowIconsCommand" "IconsVisible"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\shell\open\command] @="C:\\Program Files\\Opera\\Opera.exe" |
From: http://www.pczone.com.tw/vbb3/thread/6/133090/
Firefox
在此提供Firefox的預設登錄值。
引用:
|
Windows Registry Editor Version 5.00 ;將Firefox改成預設遊覽器 ;關閉掉Internet Explorer的預設遊覽器檢查 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "Check_Associations"="no" "ShowedCheckBrowser"="yes" [HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main] "Check_Associations"="no" "ShowedCheckBrowser"="yes" [HKEY_CLASSES_ROOT\.htm] ;.htm格式關聯去DefaultHTML @="DefaultHTML" [HKEY_CLASSES_ROOT\.html] ;.html格式關聯去DefaultHTML @="DefaultHTML" [HKEY_CLASSES_ROOT\.mht] ;.mht格式關聯去mhtmlfile @="mhtmlfile" [HKEY_CLASSES_ROOT\.url] ;.url格式關聯去InternetShortcut @="InternetShortcut" ;將DefaultHTML預設改成由Firefox開啓 ;shell就是滑鼠>右鍵的顯示出來的菜單 ;將shell設成Firefox就是指定Firefox放在選單的第一個位置以讓.htm .html文件可以由Firefox直接開啟 ;由於將Maxthon、Firefox、Opera共用DefaultHTML的關係,所以在.htm .html右鍵上會看到Firefox、Maxthon、Opera的選項 ;這時如果Maxthon、Opera不是預設遊覽器,也可以經由右鍵>選擇Maxthon、Opera開啓.htm .html ;Firefox\command 就是指定由程式的開啟,程式名的後面 %1 意思就是要開啟可變動的文件 [HKEY_CLASSES_ROOT\DefaultHTML] @="HTML Document" [HKEY_CLASSES_ROOT\DefaultHTML\shell] @="Firefox" [HKEY_CLASSES_ROOT\DefaultHTML\shell\Firefox\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -url \"%1\"" ;將mhtmlfile預設改成由Firefox開啓 [HKEY_CLASSES_ROOT\mhtmlfile\shell] @="Firefox" [HKEY_CLASSES_ROOT\mhtmlfile\shell\Firefox\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -url \"%1\"" ;將InternetShortcut預設改成由Firefox開啓 [HKEY_CLASSES_ROOT\InternetShortcut\shell] @="Firefox" [HKEY_CLASSES_ROOT\InternetShortcut\shell\Firefox\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -url \"%1\"" ;以實現MSN/Live的即時通裏的url連結點入可以經由Firefox開啟 ;要注意如果更新過MSN/Live即時通的話可能會被改回由IE開啓 [HKEY_CLASSES_ROOT\CLSID\{0002DF01-0000-0000-C000-000000000046}\LocalServer32] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\"" ;將HTTP預設改成由Firefox開啓 [HKEY_CLASSES_ROOT\HTTP\shell] @="Firefox" [HKEY_CLASSES_ROOT\HTTP\shell\Firefox\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -url \"%1\"" ;將HTTPS預設改成由Firefox開啓 [HKEY_CLASSES_ROOT\https\shell] @="Firefox" [HKEY_CLASSES_ROOT\https\shell\Firefox\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -url \"%1\"" ;將FTP預設改成由Firefox開啓 [HKEY_CLASSES_ROOT\ftp\shell] @="Firefox" [HKEY_CLASSES_ROOT\ftp\shell\Firefox\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -url \"%1\"" ;將Gopher預設改成由Firefox開啓 [HKEY_CLASSES_ROOT\gopher\shell] @="Firefox" [HKEY_CLASSES_ROOT\gopher\shell\Firefox\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -url \"%1\"" ;讓開始菜單的預設遊覽器改成Firefox [HKEY_CURRENT_USER\Software\Clients\StartMenuInternet] @="Firefox.exe" [HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet] @="Firefox.exe" ;新增Firefox在開始菜單的遊覽器選項 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe] @="Mozilla Firefox" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\firefox.exe,0" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\InstallInfo] "IconsVisible"=dword:00000001 "ReinstallCommand"="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" -silent -nosplash -setDefaultBrowser " [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\firefox.exe\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\"" |
From: http://www.pczone.com.tw/vbb3/thread/6/133090/
Maxthon
【教學】 修改視窗遊覽器的預設指定
| 由於近來看到很多網友都在問修改遊覽器的預設,於是戦零便在此開這個主題。 通常一般上遊覽器如IE、Maxthon、Firefox、Opera都會有選項可以將它們自己的遊覽器改成預設。 不過戦零在此是用手動修改登錄值的方法,要改成預設的話通常都是修改登錄值的文件、系統關聯。 用這個方法的好處是: 1. 可以更瞭解視窗的登錄值運作 2. 將遊覽器"徹底"的成為視窗的預設 (可以讓遊覽器連MSN/Live即時通都可以支授) 3. 針對如果遊覽器提供的預設無法被正常修改回來 以下是戦零以前研究留下來的並多做了一些改進,可以拿來參考看看。 也可以將以下的登錄值直接複製在記事本保存成 .reg 後直接執行。在此也打包了一份zip,可以到這裡下載。 並加入一些註解以解釋每一個登錄值的功能。這些註解不必擔心會影響到 .reg 的運作。 注意程式的預設路徑是指定成 "C:\Program Files\[遊覽器]\[遊覽器].exe" ,如有人用以外的請自行手動修改。 如發現有bug的話,麻煩告知一下以讓可以做修正。 更新: 10/5/07 修改了一些關聯,並新增Opera、IE的預設。 而且這次是將Maxthon、Firefox、Opera共用DefaultHTML,以實現.htm .html右鍵可以有Maxthon、Firefox、Opera的選擇。 對使用多遊覽器的用戶或網頁編寫員,方便隨時可以經由右鍵指定開啟。 引用:
|
From: http://www.pczone.com.tw/vbb3/thread/6/133090/

