问题描述
< link rel =chrome-webstore-itemhref =chrome.google.com/webstore/detail/itemID>
我在我的html页面上添加了以上代码(我的网站被用户点击) chrome扩展已经在chrome商店和javascript函数中发布 chrome.webstore.install()
。
用户在他的计算机上安装chrome扩展程序? 解决方案
< link rel =chrome-webstore-itemhref =chrome.google.com/webstore/detail/itemID>
我在我的html页面上添加了以上代码(我的网站被用户点击) chrome扩展已经在chrome商店和javascript函数中发布 chrome.webstore.install()
。
用户在他的计算机上安装chrome扩展程序? 解决方案
文档:
首先,为此您需要通过网站管理员工具验证网站是否属于您自己的网站。
验证完您的网站后,您需要通过开发者控制台修改您的附加信息列表,以选择该附加信息与您的(已验证)网站相关联: >
如果你已经完成了所有这些,添加了链接标记并触发了 install()
函数(如果我没有记错的话,必须由用户操作,如点击处理程序),用户将看到一个描述扩展的小对话框,如下所示:
在那里,他们可以在不打开网上商店的情况下接受或拒绝。您无法安静地安装扩展程序,但您可以为用户省去进入商店列表的麻烦。
<link rel="chrome-webstore-item" href="chrome.google.com/webstore/detail/itemID">
I have added above code on my html page (my website hit by user) which is associated with my chrome extension already published in chrome store and javascript function chrome.webstore.install()
.
Will it really make user to install the chrome extension in his computer?
The documentation: https://developer.chrome.com/webstore/inline_installation
First off, for this to work, you will need to verify the website as something you own via Webmaster Tools.
Once you verified your site, you need to edit your extension listing via Developer Console to select that the extension is associated with your (verified) site:
If you have done all that, added the link tag and triggered the install()
function (which, if I remember correctly, has to be triggered by a user action, like a click handler), the user will be presented with a small dialog describing your extension, something like that:
There, they can accept or deny without opening Web Store. You cannot silently install an extension, but you can save the user the trouble of going to the Store listing.
这篇关于Chrome扩展内联安装过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!