重新启用扩展安装 [英] Re-enabling extension installs

查看:13
本文介绍了重新启用扩展安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现新的变化是你不能安装 Chrome 扩展程序/用户脚本而不保存它们并将它们拖到 Chrome 中,这很烦人.因此,我已着手将其恢复为原来的旧方式.

我在这里阅读了文档:

一些观察:

  • 我在 chrome.exe 之后添加了 --enable-easy-off-store-extension-install 标志.
  • 启动 Chrome 后,我访问了一个网站,该网站链接到一个 .crx 文件,该文件未托管在 Chrome 网上应用店中.
  • 由于该标志,Chrome 20 不再显示扩展程序、应用程序和用户脚本只能从 Chrome 网上应用店添加"消息.相反(见底部),Chrome 会询问我是否可以安装扩展程序 - 与以前完全一样.

这个命令行开关也适用于 Linux 和 OSX 下的 Chromium/Chrome.

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_MACHINESOFTWAREPoliciesGoogleChromeExtensionInstallSources]
"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 after chrome.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆