Install Chrome extension form outside the Chrome Web Store

前端 未结 2 1882
青春惊慌失措
青春惊慌失措 2021-01-31 02:01

I have developed a Chrome extension and I have packed it.
I sent my extension to some people to try it, but Chrome started to block extensions that it does not find in the s

2条回答
  •  走了就别回头了
    2021-01-31 02:42

    For regular Windows users who are not skilled with computers, it is practically not possible to install and use extensions from outside the Chrome Web Store.

    Users of other operating systems (Linux, Mac, Chrome OS) can easily install unpacked extensions (in developer mode).
    Windows users can also load an unpacked extension, but they will always see an information bubble with "Disable developer mode extensions" when they start Chrome or open a new incognito window, which is really annoying. The only way for Windows users to use unpacked extensions without such dialogs is to switch to Chrome on the developer channel, by installing https://www.google.com/chrome/browser/index.html?extra=devchannel#eula.

    Extensions can be loaded in unpacked mode by following the following steps:

    1. Visit chrome://extensions (via omnibox or menu -> Tools -> Extensions).
    2. Enable Developer mode by ticking the checkbox in the upper-right corner.
    3. Click on the "Load unpacked extension..." button.
    4. Select the directory containing your unpacked extension.

    If you have a crx file, then it needs to be extracted first. CRX files are zip files with a different header. Any capable zip program should be able to open it. If you don't have such a program, I recommend 7-zip.

    These steps will work for almost every extension, except extensions that rely on their extension ID. If you use the previous method, you will get an extension with a random extension ID. If it is important to preserve the extension ID, then you need to know the public key of your CRX file and insert this in your manifest.json. I have previously given a detailed explanation on how to get and use this key at https://stackoverflow.com/a/21500707.

提交回复
热议问题