如何安装通过命令行CRX Chrome扩展? [英] How install crx Chrome extension via command line?

查看:3135
本文介绍了如何安装通过命令行CRX Chrome扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,安装Chrome扩展(开发工作时)的唯一方法是从桌面拖放到浏览器,然后单击弹出窗口上的添加。我想preFER使整个过程自动化。我目前构建,打包和编程签我的CRX,但我坚持了最后的手动步骤。这可能吗?

Currently, the only way to install a Chrome extension (while working in development) is to drag it from the desktop onto the browser and click "Add" on the popup window. I would prefer to make the whole process automatic. I currently build, package and sign my CRX programatically, but am stuck with the final manual step. Is this possible?

我试图创建从我自己的网址安装CRX(在这里看到:<一href=\"http://stackoverflow.com/questions/16489013/after-adding-extensioninstallsources-$p$pference-with-my-url-to-chrome-$p$pference\">After加入ExtensionInstallSources preference与我的URL到Chrome浏览器preferences,仍然不会允许安装&QUOT;&的.crx QUOT;封装应用),但没有奏效。

I tried creating my own URL from which to install the CRX (see here: After adding ExtensionInstallSources preference with my URL to Chrome Preferences, still won't allow installing ".crx" packaged app ) but this did not work.

我想这个安装到是永久性的,的的临时安装在当前运行期间只持续..

I want this install to be permanent, not a temporary install that only lasts during the current run..

推荐答案

这是一个老问题,但你最近更新了,所以..

That's an old question, but you recently updated it, so..

有没有完全自动化的方式来做到这一点的除了的的企业政策,其中只有很少的适用。 如果这不是一种选择,你的运气了。这是在2014年安全决策由Chrome团队,因为恶意软件,这样做,是的猖獗的。下面是关于这个话题一个最新帖子

There are no fully automated ways to do it besides Enterprise Policy, which only rarely applies. If that is not an option, you're out of luck. This was a security decision in 2014 by Chrome team, because malware that did that was rampant. Here's a latest post on this topic.


  1. 在Windows机器上,在企业策略 force_install 是唯一没有确认,但它需要一个Windows域的计算机和管理权限在上述的域名。我不是100%肯定它是如何工作在Linux / Mac上,但这里的href=\"https://support.google.com/chrome/a/answer/188453\" rel=\"nofollow\">相关的常见问题解答<一个

  1. On a Windows machine, the Enterprise Policy force_install is the only no-confirmation one, but it requires a machine in a Windows Domain and admin rights in said domain to enable. I'm not 100% sure how it works on Linux/Mac, but here's a relevant FAQ.

有是安装扩展的编程方法,但现在仅适用于发表在CWS(使谷歌可以在滥用的情况下,拔出插头)扩展。这是这里,但仍需要人工审批从描述用户在浏览器启动此添加后的第一次。这是怎么回事,比如像Skype的点击通话功能的各种合法的捆绑扩展安装。

There is a programmatic method of installing extensions, but it now only applies to extensions that are published in CWS (so that Google can pull the plug in case of abuse). It is described here, but will still require a manual approval from the user when the browser starts for the first time after this is added. That's how, for instance, various legitimate bundled extensions like Skype's Click-to-call are installed.

这篇关于如何安装通过命令行CRX Chrome扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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