firefox - 创建 Mozilla Firefox 的自定义构建

标签 firefox build firefox-addon mozilla

我正在尝试构建我自己的 Firefox 版本,对 UI 进行轻微的更改,并在构建中添加一些插件(扩展)。

我已经从 repo 下载了源代码。我将从哪里开始实现这一目标?

哪些所有代码都包含 UI 结构?我在哪里放置我的插件 xpi 文件?

PS:我尝试阅读 Mozilla 文档。它要么有点过时,要么我没有真正理解它?详细的见解将不胜感激。

最佳答案

插件
为此,只需将扩展放在 distribution/extensions 中。
应用程序分发目录中的目录。
这是扩展名
https://dxr.mozilla.org/aviary101branch/source/browser/extensions
Firefox 中的标志
https://dxr.mozilla.org/aviary101branch/source/browser/config/mozconfig
使用主题做更多事情
https://dxr.mozilla.org/aviary101branch/source/themes/modern
https://dxr.mozilla.org/aviary101branch/source/browser/themes
对于编辑,您可能需要 XUL
https://www.xul.fr/tutorial/
成分
去这里定制您需要的每个组件

https://dxr.mozilla.org/aviary101branch/source/browser/components

关于firefox - 创建 Mozilla Firefox 的自定义构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49255239/

相关文章:

google-chrome - 是否可以在 Firefox 或 Chrome 中查看发布请求的数据?

javascript - xpcom数组可以在不同的xul文件中传输吗?

node.js - ionic 框架 : Ionic build fails while creating the project (v4. 12.0)

javascript - 在浏览器中仅禁用某些 js 文件

html - 跨浏览器的不同页面 View

linux - fatal error : No compiled in support for x86_64

button - Jenkins - 这可能吗?为基于参数的作业设置多个构建按钮

JavaScript Function.prototype.toSource() 在 Chrome 中不起作用

调试类似油脂猴的脚本

javascript - 引用错误 : require is not defined