Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to link to chrome extension like Chrome Web Store?

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?

like image 970
aloo Avatar asked Oct 29 '11 00:10

aloo


People also ask

What is the URL for Chrome extensions?

This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.

How do I add extensions to Chrome Without the Web store?

There's however an easy workaround to this problem. First download the CRX file of any Chrome extension /web-app to your computer. Then click the Settings icon in Chrome (previously a Wrench icon) and go to Tools -> Extensions. Drag and drop the CRX file on this page and Chrome will gladly install the add-on.


2 Answers

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.

like image 112
serg Avatar answered Oct 24 '22 19:10

serg


Chrome now has inline install that enables a one-click install on your site but downloading from the store.

See here for more details.

like image 41
Gordon Avatar answered Oct 24 '22 18:10

Gordon