重新启用扩展程序安装 [英] Re-enabling extension installs
问题描述
我发现了新的变化,您无法在不保存Chrome扩展程序/用户脚本的情况下安装Chrome扩展程序/用户脚本,并将它们拖入Chrome中令人感到烦恼。因此,我已经着手将其恢复到原来的状态。
我在这里阅读文档:
一些观察:
- 我添加了
- enable-easy-off-store-extension-install
标志在chrome.exe
之后。 - 启动Chrome之后,我访问了一个链接到
.crx
文件,该文件不在Chrome网上商店中托管。 - 由于该标志,Chrome 20不会显示扩展程序,应用程序和用户脚本只能从Chrome网上应用店消息中添加。相反,Chrome浏览器询问我是否可以像以前一样安装扩展程序。
此命令行开关也可以工作为Chromium / Chrome,在Linux和OSX下。
I found the new change that you can't install Chrome extensions/userscripts without saving them and dragging them into Chrome quite annoying. As such I have set forth to revert this to the old way it was.
I read the documentation here: http://www.chromium.org/administrators/policy-list-3#ExtensionInstallSources that says to add a registry key and so I have done, as shown below. However when attempting to install an extension I still get an error that they can only be installed from the Chrome webstore. Did I add the registry entries wrong or something?
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallSources]
"1"="http://*"
"2"="https://*"
This answer is obsolete as of Chrome 36
Instead of editing the registry, you can also make Chrome to behave in the old way via the --enable-easy-off-store-extension-install
flag.
Under Windows, create a shortcut to your Chrome executable. Then edit the shortcut, and append --enable-easy-off-store-extension-install
to "Target". See the screenshot below:
Some observations:
- I've added the
--enable-easy-off-store-extension-install
flag afterchrome.exe
. - After starting Chrome, I visited a website that links to a
.crx
file that is not hosted in the Chrome web store. - Because of the flag, Chrome 20 doesn't show the "Extensions, apps, and user scripts can only be added from the Chrome Web Store" message any more. Instead (see bottom), Chrome asks me whether it's OK to install the extension - exactely as before.
This command line switch also works for Chromium/Chrome, under Linux and OSX.
这篇关于重新启用扩展程序安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!