2012年3月5日星期一

Chrome: 定制自己喜欢的Chrome

Chrome确实是非常好的一款浏览器,但是也有让人不爽的地方。
那就是它默认装到C盘里,当你选择它做默认浏览器的时候,一些配置参数也丢掉了。导致cachedir等依旧在C盘里。

本文就介绍一种折中的办法,那就是将Chrome安装在默认的位置C盘,配置参数弄进注册表。
点击它,用的是新的配置参数启动。这样就不会有什么大问题了。

注册表信息变更:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command]
@="\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --disk-cache-size=41943040 --user-data-dir=\"D:\\tools\\Chrome\\Data\"   -- \"%1\""

[HKEY_CLASSES_ROOT\http\shell\open\command]
@="\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --disk-cache-size=41943040 --user-data-dir=\"D:\\tools\\Chrome\\Data\"   -- \"%1\""

[HKEY_CLASSES_ROOT\https\shell\open\command]
@="\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --disk-cache-size=41943040 --user-data-dir=\"D:\\tools\\Chrome\\Data\"   -- \"%1\""

[HKEY_CLASSES_ROOT\ftp\shell\open\command]
@="\"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\" --disk-cache-size=41943040 --user-data-dir=\"D:\\tools\\Chrome\\Data\"   -- \"%1\""

这里把datadir设到d:\tools\Chrome\Data里头。

当然还要改变快捷方式,将Target(目标)改为:
"C:\Program Files\Google\Chrome\Application\chrome.exe"   --disk-cache-size=41943040 --user-data-dir="D:\tools\Chrome\Data"

没有评论:

发表评论