background preloader

Building an extension

Building an extension
Introduction This tutorial will take you through the steps required to build a very basic extension - one which adds a status bar panel to the Firefox browser containing the text "Hello, World!". Note: The extension created by this tutorial won't work in Firefox versions that don't have a static status bar (that is, Firefox 4 and up). You can find a more up-to-date tutorial in the XUL School tutorial The Essentials of an Extension. Since Firefox 4 (and other Mozilla 2 based applications) there are two types of extensions: Traditional, classic, or XUL extensions are more powerful, but more complicated to build and require a restart to install. This article explains how to build a traditional extension for Firefox. For a tutorial on building an extension for Thunderbird, see Building a Thunderbird extension. Quick Start A Hello World extension similar to what you can generate with the Extension Wizard is explained line-by-line in another tutorial from MozillaZine Knowledge Base. <? XUL Overlays

https://developer.mozilla.org/en-US/docs/Building_an_Extension

Related:  Addons

Setting up an extension development environment This article gives suggestions on how to set up your Mozilla application for extension development. Unless otherwise specified, these suggestions apply to both Firefox and Thunderbird as well as SeaMonkey version 2.0 and above. Overview Create a development user profile to run your development firefox session; with special development preferences in about:config. Install some Firefox development extensions to your dev profile. Edit files in the extensions folder of your profile and restart the application with the dev profile. How to develop a Firefox extension There are more recent development guides in the add-ons section of the Mozilla Developer Network. Please use those instead. Reposted with permission from Robert Nyman: Admit that you have always wanted to know how to develop a Firefox extension but never had the time to learn. Here I will walk you through and at the end of the article we will have created a fully functional Firefox extension!

How to develop a Firefox extension There are more recent development guides in the add-ons section of the Mozilla Developer Network. Please use those instead. Reposted with permission from Robert Nyman: Admit that you have always wanted to know how to develop a Firefox extension but never had the time to learn. Here I will walk you through and at the end of the article we will have created a fully functional Firefox extension! Extension Manager:Bootstrapped Extensions Note: This page contains preliminary documentation of the feature and is mainly of historical interest. The documentation is at MDC. Bootstrapped add-ons are a special kind of add-on that developers can choose to use instead of normal add-ons in order to allow users to install and use the add-on without needing to restart the application. In order to do this, rather than the application loading chrome and components from the add-on it is up to the add-on developer to do all of this manually. All the application will do is execute a bootstrap script that the add-on provides, telling it to startup. The add-on can do whatever it likes at that point however it must undo anything it has done when we call the bootstrap script to tell it to shutdown.

Tutorials Beginner GIMP Quickies Use GIMP for simple graphics needs without having to learn advanced image manipulation methods. Simple Floating Logo This tutorial walks through some basic image and layer manipulation techniques. web development » How to create Firefox extensions (Note: This article is pretty dated by now. It’s still a good way to get the foundations of making a Firefox extension, but use it as a guide instead of an absolute reference. If you’d like to see how to create a Google Chrome extension, you can read this article here: Everyone has a good idea at one time or another to implement a new feature in a web browser. Well, with the goodness that is Mozilla Firefox, now you can do just that. You need to have a vague understanding of XUL and Javascript, but you certainly don’t need to be a master of either.

Adblock Plus and (a little) more: Why you should make your next add-on restartless Why you should make your next add-on restartless · 2012-07-12 14:18 by Wladimir Palant Note: This article is not about extensions based on the Add-on SDK (Jetpack). You don’t have to use the SDK to create a restartless extension. Just wanted to point this out explicitly to avoid confusion. An extension that will install without requiring a Firefox restart? Extension development From MozillaZine Knowledge Base Introduction Extensions allow programmers to add new features to Mozilla applications or allow existing features to be modified. Typically, extensions modify the “chrome” of their target application—the user interface and the scripts that add functionalty to that interface. However, it is also possible for extensions to include compiled code in the form of XPCOM components. Extension technologies

Bootstrapped extensions - Extensions Note: All extensions created using the Add-on SDK are bootstrapped! All the bootstrapping code is generated for you, so you don't really need to think about it. Not using the Add-on SDK? Read on... Setting up an extension development environment This article gives suggestions on how to set up your Mozilla application for extension development. Unless otherwise specified, these suggestions apply to both Firefox and Thunderbird as well as SeaMonkey version 2.0 and above. Overview Create a development user profile to run your development firefox session; with special development preferences in about:config.

Related: