What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere?
开始编写Firefox Addon有哪些资源?某处有API指南吗?某处有入门教程吗?在某处有开发人员讨论板吗?
6 个解决方案
#1
94
We tried to make http://developer.mozilla.org/en/Extensions answer all those questions. The first three links in the documentation section are about getting started (that includes Adam's link). The newsgroup and the irc channel in the Community section are the official discussion boards.
我们试图让http://developer.mozilla.org/en/Extensions回答所有这些问题。文档部分中的前三个链接是关于入门(包括Adam的链接)。新闻组和社区部分的irc频道是官方讨论区。
Mozilla is very complex, so any kind of API guide would be overwhelming and hard to write. So your best bet is to check the code snippets page (also linked from the MDC Extensions page), then search MDC/google, then ask in the forums.
Mozilla非常复杂,因此任何类型的API指南都是压倒性的,难以编写。因此,最好的办法是检查代码段页面(也从MDC Extensions页面链接),然后搜索MDC / google,然后在论坛中查询。
#2
30
The official page listed above is good, but this is the most useful page I have found to get started: http://blog.mozilla.com/addons/2009/01/28/how-to-develop-a-firefox-extension/
上面列出的官方页面很好,但这是我发现的最有用的页面:http://blog.mozilla.com/addons/2009/01/28/how-to-develop-a-firefox-延期/
And I found starting with an extension generated from the Add-on Builder to be a great start also. You go right to tweaking JavaScript and seeing what happens: https://addons.mozilla.org/en-US/developers/tools/builder
我发现从Add-on Builder生成的扩展开始也是一个很好的开始。您可以直接调整JavaScript并查看会发生什么:https://addons.mozilla.org/en-US/developers/tools/builder
You are also really going to want to be able to debug, you have two choices for that: ChromeBug - Which gives you FireBug for Firefox Extensions. WebStorm, but you need to use the early-access version and it currently requires a patch I wrote.
您也真的希望能够进行调试,您有两种选择:ChromeBug - 它为您提供FireBug for Firefox Extensions。 WebStorm,但你需要使用早期访问版本,它目前需要我写的补丁。
#3
20
Here's the official starter page from Mozilla for writing your first extension. http://developer.mozilla.org/en/Building_an_Extension
这是Mozilla的官方首页,用于编写您的第一个扩展程序。 http://developer.mozilla.org/en/Building_an_Extension
#4
10
I found greasemonkey to be a great starting point... I used it to create some functionality for a site, then I used this script compiler to turn my script into a working add-on. Of course it's machine generated... but it's very few files and pretty easy to understand. Just unzip the .xpi and tinker away.
我发现greasemonkey是一个很好的起点...我用它来为网站创建一些功能,然后我使用这个脚本编译器将我的脚本变成一个可用的附加组件。当然它是由机器生成的...但是文件非常少而且很容易理解。只需解压缩.xpi并修补。
#5
6
This is a great resource to start learning how to build a FireFox extension:
How to create Firefox extensions
这是开始学习如何构建FireFox扩展的一个很好的资源:如何创建Firefox扩展
This is an awesome tutorial and will covers most type of extensions.
这是一个很棒的教程,将涵盖大多数类型的扩展。
Edit: Updated link to use archived copy since original page no longer exists
编辑:更新链接以使用归档副本,因为原始页面不再存在
#6
2
This has the best solutions: https://developer.mozilla.org/en/Extensions but you can try greasemonkey script compiler
这有最好的解决方案:https://developer.mozilla.org/en/Extensions但你可以试试greasemonkey脚本编译器
#1
94
We tried to make http://developer.mozilla.org/en/Extensions answer all those questions. The first three links in the documentation section are about getting started (that includes Adam's link). The newsgroup and the irc channel in the Community section are the official discussion boards.
我们试图让http://developer.mozilla.org/en/Extensions回答所有这些问题。文档部分中的前三个链接是关于入门(包括Adam的链接)。新闻组和社区部分的irc频道是官方讨论区。
Mozilla is very complex, so any kind of API guide would be overwhelming and hard to write. So your best bet is to check the code snippets page (also linked from the MDC Extensions page), then search MDC/google, then ask in the forums.
Mozilla非常复杂,因此任何类型的API指南都是压倒性的,难以编写。因此,最好的办法是检查代码段页面(也从MDC Extensions页面链接),然后搜索MDC / google,然后在论坛中查询。
#2
30
The official page listed above is good, but this is the most useful page I have found to get started: http://blog.mozilla.com/addons/2009/01/28/how-to-develop-a-firefox-extension/
上面列出的官方页面很好,但这是我发现的最有用的页面:http://blog.mozilla.com/addons/2009/01/28/how-to-develop-a-firefox-延期/
And I found starting with an extension generated from the Add-on Builder to be a great start also. You go right to tweaking JavaScript and seeing what happens: https://addons.mozilla.org/en-US/developers/tools/builder
我发现从Add-on Builder生成的扩展开始也是一个很好的开始。您可以直接调整JavaScript并查看会发生什么:https://addons.mozilla.org/en-US/developers/tools/builder
You are also really going to want to be able to debug, you have two choices for that: ChromeBug - Which gives you FireBug for Firefox Extensions. WebStorm, but you need to use the early-access version and it currently requires a patch I wrote.
您也真的希望能够进行调试,您有两种选择:ChromeBug - 它为您提供FireBug for Firefox Extensions。 WebStorm,但你需要使用早期访问版本,它目前需要我写的补丁。
#3
20
Here's the official starter page from Mozilla for writing your first extension. http://developer.mozilla.org/en/Building_an_Extension
这是Mozilla的官方首页,用于编写您的第一个扩展程序。 http://developer.mozilla.org/en/Building_an_Extension
#4
10
I found greasemonkey to be a great starting point... I used it to create some functionality for a site, then I used this script compiler to turn my script into a working add-on. Of course it's machine generated... but it's very few files and pretty easy to understand. Just unzip the .xpi and tinker away.
我发现greasemonkey是一个很好的起点...我用它来为网站创建一些功能,然后我使用这个脚本编译器将我的脚本变成一个可用的附加组件。当然它是由机器生成的...但是文件非常少而且很容易理解。只需解压缩.xpi并修补。
#5
6
This is a great resource to start learning how to build a FireFox extension:
How to create Firefox extensions
这是开始学习如何构建FireFox扩展的一个很好的资源:如何创建Firefox扩展
This is an awesome tutorial and will covers most type of extensions.
这是一个很棒的教程,将涵盖大多数类型的扩展。
Edit: Updated link to use archived copy since original page no longer exists
编辑:更新链接以使用归档副本,因为原始页面不再存在
#6
2
This has the best solutions: https://developer.mozilla.org/en/Extensions but you can try greasemonkey script compiler
这有最好的解决方案:https://developer.mozilla.org/en/Extensions但你可以试试greasemonkey脚本编译器