问题描述
我已经开发了chrome扩展程序,后来我使用gulp特定于浏览器.
I have developed extension for chrome and later I made browser specific using gulp.
所以我知道剩下的文件夹了.
So I know left with folders.
/Chrome
/Firefox
|-/data/
|-/locale/
|-index.js
|-package.json
/Safari
因此对于chrome来说,这是简单的拖放操作.
So for the chrome it was simple drag and drop.
所以我遇到的问题是,当我尝试在 about:degugger 的firefox浏览器上加载时,它将拒绝我的扩展名它已损坏.
So problem I faced is when I try to load on firefox browser at about:degugger it would reject my extension saying it is corrupt.
对于Safari,我在他们的网站上进行了搜索,并找到了仅使用Xcode编辑器的文档.
For Safari I searched on their website and I found documentation for only using Xcode editor.
推荐答案
在Safari上安装解压缩的扩展程序
- 打开Safari
- 转到菜单
Develop->显示扩展构建器
(如果没有Develop
菜单,请打开SafariPreferences-> Advanced
,并选中在菜单栏中显示开发"菜单
) - 在Extension Builder窗口中,单击窗口左下角的
+
,然后单击Add Extension
- 选择扩展文件夹(您的扩展文件夹应命名为
YourExtName.safariextension
) - 现在您的扩展程序将显示在Extension Builder的左侧面板中,您可以单击
Install
按钮进行安装
- Open Safari
- Go to menu
Develop->Show Extension Builder
(If there is noDevelop
menu, open SafariPreferences->Advanced
, and checkShow Develop menu in menu bar
) - In Extension Builder window, click
+
at the left-bottom of the window, then clickAdd Extension
- Select your extension folder (Your extension folder should be named as
YourExtName.safariextension
) - Now your extension will show at left panel of Extension Builder, you can click
Install
button to install it
在Firefox上安装解压后的扩展程序
最新版本的Firefox支持加载临时扩展名(不确定从哪个版本开始).
Latest version of Firefox support load temporary extensions (Not sure from which version).
步骤:
- 导航至about:debugging
- 点击
加载临时加载项
按钮 - 选择您扩展名的清单文件
这篇关于如何在Firefox和Safari浏览器中加载扩展程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!