如何链接到Chrome网上应用店之类的Chrome扩展? [英] How to link to chrome extension like Chrome Web Store?

查看:431
本文介绍了如何链接到Chrome网上应用店之类的Chrome扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在自己的网站上自行托管Chrome扩展程序,但希望安装体验与Chrome网上商店中的相同。具体来说,我想要一个添加到Chrome按钮,要求用户通过再次点击来安装扩展。目前在自我托管的扩展中,您必须确认下载并确认安装。

以下是网上商店的示例: https://chrome.google.com/webstore/detail/olnconaknblgbkfgknkfmmfhhbebkekd



我想自行托管的唯一原因是他们可以留下来在我的网站上安装扩展程序。



我会很好地在Chrome网上商店托管,如果这有助于体验(即从我的网站到Chrome网上商店的特殊链接,立即下载)。



有什么想法?

解决方案

Chrome webstore有特殊待遇,不能重现它。



为了节省您自行托管的麻烦,您可以直接链接到webstore上托管的crx文件,格式如下:

  http://clients2.google.com/service/update2/crx?response=redirect&x=id%3D<EXTENSION_ID_HERE>%26uc%26lang%3Den- US& prod = chrome 

用户仍然需要确认2次,但至少您不需要必须托管它并且用户不会离开您的网站。

更新



刚刚发布到稳定分支的Chrome 15已内联安装 ,这看起来正是你在找什么。


I'd like to self host a chrome extension on my own site but would like the install experience to be the same as on the chrome web store. Specifically, I'd like to have a "add to chrome" button which asks the user to install the extension with one more click. Currently on self hosted extensions you have to confirm the download and then confirm the install.

Here's an example of the web store: https://chrome.google.com/webstore/detail/olnconaknblgbkfgknkfmmfhhbebkekd

The only reason I'd like to self host is so that they can stay on my site while installing the extension.

I'd be perfectly fine hosting on the chrome webstore as well if that helped with the experience (i.e. a special link from my site to the chrome webstore that would start the download immediately).

Any ideas?

解决方案

Chrome webstore has special treatment, you can't reproduce it.

To save you trouble of self hosting, you can provide a direct link to crx file hosted on webstore which has the following format:

http://clients2.google.com/service/update2/crx?response=redirect&x=id%3D<EXTENSION_ID_HERE>%26uc%26lang%3Den-US&prod=chrome

Users would still need to confirm 2 times, but at least you don't have to host it and users won't leave your site.

UPDATE

Chrome 15, that was just released into stable branch, has Inline Installation, which seems like exactly what you are looking for.

这篇关于如何链接到Chrome网上应用店之类的Chrome扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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