Mozilla provides three different toolsets for developing add-ons. Choose the one that's right for you.
The traditional way of creating add-ons for Gecko-based applications is to modify the XUL used to define the application user interface and access platform features by loading XPCOM components.