不在商店中安装Chrome扩展程序 [英] Install Chrome extension not in the store

查看:591
本文介绍了不在商店中安装Chrome扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了Chrome扩展程序,并将其打包。

我将扩展程序发送给某些人试用,但Chrome开始阻止它在商店中找不到的扩展程序。



有什么方法可以安装我的扩展程序,而不会被Chrome屏蔽?

编辑

有什么方法可以将扩展程序安装为开发人员模式?我发现只有在开发者模式下安装的扩展程序才会被阻止。

对于不熟悉计算机的常规Windows用户, 其他操作系统的用户(Linux,Mac,Chrome)

OS)可以轻松地安装未打包的扩展(以开发人员模式)。

Windows用户也可以加载未打包的扩展,但当他们启动Chrome或打开时,他们总是会看到带有禁用开发者模式扩展一个新的隐身窗口,这真的很烦人。 Windows用户使用不带此类对话框的解压缩扩展程序的唯一方法是通过安装 https://www.google.com/chrome/browser/index.html?extra=devchannel#eula



扩展程序可以请按照以下步骤以解包模式加载

< >

  • 访问 chrome:// extensions (通过多功能框或菜单 - >工具 - >扩展程序)。
  • 点击右上角的复选框启用开发者模式。
  • 点击加载解压后的扩展...按钮。
  • >选择包含解包的扩展名的目录。
  • 如果您有 crx 文件,那么它需要先提取。 CRX文件是带有不同标题的zip文件。任何有能力的压缩程序应该能够打开它。如果你没有这样的程序,我建议 7-zip



    这些步骤几乎适用于每个扩展,除了依赖扩展ID的扩展。如果您使用以前的方法,您将得到一个带有随机扩展ID的扩展名。如果保留扩展ID很重要,那么您需要知道CRX文件的公钥并将其插入到manifest.json中。我以前在 https://stackoverflow.com/a/21500707 上提供了有关如何获取和使用此密钥的详细说明。

    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 store.

    Is there any way to install my extension without getting blocked by Chrome?

    EDIT
    Is there any way to install extension as developer mode? I read that only extensions that installed in developer mode will not blocked.

    解决方案

    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.

    这篇关于不在商店中安装Chrome扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆