在Chrome中加载未打包的扩展

Load the extension


Extensions that you download from the Chrome Web Store are packaged up as .crx files, which is great for distribution, but not so great for development. Recognizing this, Chrome gives you a quick way of loading up your working directory for testing. Let's do that now.


    Visit chrome://extensions in your browser (or open up the Chrome menu by clicking the icon to the far right of the Omnibox: The menu's icon is three horizontal bars.. and select Extensions under the Tools menu to get to the same place).


    Ensure that the Developer mode checkbox in the top right-hand corner is checked.


    Click Load unpacked extension… to pop up a file-selection dialog.


    Navigate to the directory in which your extension files live, and select it.


If the extension is valid, it'll be loaded up and active right away! If it's invalid, an error message will be displayed at the top of the page. Correct the error, and try again.


加载扩展

从Chrome Web Store上下载的扩展会被打包成.crx文件,便于部署,但却不利于开发。因此,Chrome为我们提供了一个快捷方法,可直接使用工作目录上传扩展。介绍如下:

在浏览器中访问chrome://extensions来查看扩展,(或者点击窗口右上角的图标来打开Chrome菜单,该图标为三个水平条,并选择工具菜单组中的扩展项)

确保“开发模式”的Checkbox被选中-》点击load unpaced extension, 弹出文件选择框-》找到你的扩展文件所有目录并选择它-》如果扩展正确,它将被正确加载,反之则会弹出错误信息,纠正错误后重试。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值