如何链接到 Chrome 扩展程序(例如 Chrome 网上应用店)?
我想在自己的网站上自行托管 Chrome 扩展程序,但希望安装体验与 Chrome 网上商店相同。具体来说,我想要一个“添加到 chrome”按钮,要求用户再单击一次即可安装扩展程序。目前,在自托管扩展上,您必须确认下载,然后确认安装。
以下是网上商店的示例:https://chrome.google.com/webstore/detail/olnconaknblgbkfgknkfmmfhhbebkekd
我想自行托管的唯一原因是这样他们就可以留下来安装扩展程序时我的网站。
如果这有助于体验(即从我的网站到 chrome 网上商店的特殊链接,可以立即开始下载),我也可以在 chrome 网上商店托管。
有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Chrome网上应用店有特殊处理,你无法复制它。
为了省去您自行托管的麻烦,您可以提供一个直接链接到网上商店托管的 crx 文件,其格式如下:
用户仍然需要确认 2 次,但至少您不必托管它,用户也不会'不要离开你的网站。
更新
刚刚发布到稳定分支的 Chrome 15 具有内联安装,这似乎正是您正在寻找的。
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:
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 now has inline install that enables a one-click install on your site but downloading from the store.
See here for more details.
将类似的内容添加到您的元数据中将
其添加到任何位置:
Add something like this to your meta-data
Add this any where:
Chrome 不再支持扩展程序的内联安装。
https://developer.chrome.com/extensions/inline_faq
Chrome no longer supports in-line installation of extensions.
https://developer.chrome.com/extensions/inline_faq