Windows 家庭版的朋友,没有组策略编辑器的话,请尝试修改注册表的方式。
修改组策略
没有组策略编辑器的朋友,可以尝试一下 PolicyPlus。
原文
For Win7:
1. download Chrome group policy templates here: http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip
2. Copy [zip]\windows\chrome.admx to c:\windows\policydefinitions
3. Copy [zip]\windows\[yourlanguage]\chrome.adml to c:\windows\policydefinitions\[yourlanguage]\chrome.adml (not c:\windows\[yourlanguage])
4. In Chrome, go to Settings -> Extensions
5. Check the Developer Mode checkbox at the top
6. Scroll down the list of disabled extensions and note the ID's of the extensions you want to enable. LogMeIn, for example, is ID: nmgnihglilniboicepgjclfiageofdfj
7. Click Start -> Run, and type gpedit.msc
8. Expand User Configuration -> Administrative Templates -> Google -> Google Chrome -> Extensions
9. Double-click to open "Configure extension installation whitelist"
10. Select "Enabled", then click "Show..."
11. In the list, enter all the ID's for the extensions you noted in Step 6
12. Click OK and restart Chrome.
中文翻译
复制 .\windows\chrome.admx 到 C:\Windows\PolicyDefinitions
复制 .\windows\zh-CN\chrome.adml 到 C:\Windows\PolicyDefinitions\zh-CN\chrome.adml
勾选 “开发者模式”
找到你无法启用的扩展程序,下方有一行 ID(类似于 nmgnihglilniboicepgjclfiageofdfj),把它复制下来
开始 -> 运行,gpedit.msc(用 Windows 家庭版的朋友,先研究一下怎么把组策略编辑器装上吧)
本地计算机组策略 -> 用户配置 -> 管理模板 -> Google Chrome -> 扩展程序
双击“配置扩展程序安装白名单”
改成“已启用”,然后点击“显示...”
把第6步复制的 ID 粘贴进去(可以添加多个)
重启 Chrome
修改注册表
可以参考 .\windows\examples\chrome.reg
新建一个 reg 文件,写入以下内容
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionInstallWhitelist]
"1"="extension_id1"
"2"="extension_id2"
这个 extension_id1 就是勾选 “开发者模式” 之后类似于 nmgnihglilniboicepgjclfiageofdfj 那个 ID。
然后双击这个 reg 文件,导入就行了。
为什么 Chrome 要这么做?
因为 Windows 并没有隔离应用程序的数据,任何程序都可以访问 Chrome 的配置文件,Chrome 自己可以安装扩展程序、启用扩展程序,其他恶意程序也可以这么做,他们可以通过简单的修改配置文件,就达到了修改浏览器行为的目的。但是组策略并不是,修改组策略是需要管理员权限的。
之前就有其他人问:为什么 Chrome 保存的密码不加密,直接就可以显示密码?Chrome 的密码其实是加密过的,只有当前登录的 Windows 用户才能解密。如果你都选择直接把电脑借给别人,而不是用访客账户,那么 Chrome 加密有什么用呢。
附件
zip 文件没法上传怎么办?
你们就用修改注册表的方法吧。