How to link to chrome extension like Chrome Web Store?

冷暖自知 提交于 2019-12-02 23:23:57

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.

Gordon

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

<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/you-chrome-id">

Add this any where:

onclick="javascript:chrome.webstore.install()"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!