javascript - Chrome Extension Inline install procedure -
<link rel="chrome-webstore-item" href="chrome.google.com/webstore/detail/itemid">
i have added above code on html page (my website hit user) associated chrome extension published in chrome store , javascript function chrome.webstore.install()
.
will make user install chrome extension in computer?
the documentation: https://developer.chrome.com/webstore/inline_installation
first off, work, need verify website own via webmaster tools.
verified site requirement
for security reasons, inline installations can initiated page on site verified (via webmaster tools) being associated item in chrome web store. note if verify ownership domain (for example, http://example.com) can initiate inline installation subdomain or page (for example, http://app.example.com or http://example.com/page.html).
once verified site, need edit extension listing via developer console select extension associated (verified) site:
if have done that, added link tag , triggered install()
function (which, if remember correctly, has triggered user action, click handler), user presented small dialog describing extension, that:
there, can accept or deny without opening web store. cannot silently install extension, can save user trouble of going store listing.