Tutorials
This page lists practical explanations of how to develop add-ons with
the SDK. The tutorials don't yet cover all the high-level APIs: see the sidebar
on the left for the full list of APIs.
Download, install, and initialize the SDK on Windows, OS X and Linux.
|
The basic cfx commands you need to start creating add-ons.
|
Some pointers for fixing common problems and getting more help.
|
|
Attach a button to the Firefox Add-on toolbar.
|
Display a popup dialog implemented with HTML and JavaScript.
|
Add items to Firefox's main menus.
|
Add items to Firefox's context menu.
|
Open a web page in a new browser tab or window using the
tabs module, and access its content.
|
Use the tabs
module to iterate through the currently open tabs, and access their content.
|
Use the tabs
module to get notified when new web pages are loaded, and access their content.
|
|
Create filters for web pages based on their URL: whenever a web page
whose URL matches the filter is loaded, execute a specified script in it.
|
Dynamically load a script into the currently active web page.
|
Log messages to the console for diagnostic purposes.
|
Get notifications when your add-on is loaded or unloaded by Firefox,
and pass arguments into your add-on from the command line.
|
Structure your add-on in separate modules to make it easier to develop, debug, and maintain.
Create reusable packages containing your modules, so other add-on developers can use them too.
|
Install and use additional modules which don't ship with the SDK itself.
|
Writing and running unit tests using the SDK's test framework.
|
Writing localizable code.
|
Get access to the Components
object, enabling your add-on to load and use any XPCOM object.
|
Get set up to develop add-ons for Firefox Mobile on Android.
|
Enable the objects you define to emit their own events.
|
|
A walkthrough of a relatively complex add-on.
|
|