It was fascinating to watch the unveiling of Firefox 3 last week. I’m pleased that, in some small way, my contributions helped to bring this browser out the door.
First 24 hours: 8.3 million downloads, 69 downloads/second, 20 Gb/s Peak Transfer
If you’re interested in learning more about FUEL I’ve collected a number of links and examples:
The Development of FUEL
Today FUEL lives in Firefox 3 (meaning that you can use it to develop Firefox extensions) and is part of the core Mozilla platform (meaning that portions of the API will be available in any Mozilla-based application that is built). For example you can even use a FUEL-like API in Thunderbird (called ‘STEEL‘). Here are some of the best resources for getting started with FUEL in Firefox 3:
- FUEL – Main Page (API, Examples)
- FUEL – Documentation (API)
- FUEL – Presentation (John Resig) – Given in Paris at a Mozilla DevDay, June 2007 – see below.
- FUEL – Presentation (Mark Finkle) – Given in Tokyo at a Mozilla DevDay, June 2007.
- STEEL – Example – If you’re interested in extending Thunderbird Bryan Clark provides a good example.
Here are some of my favorite example of FUEL in action. It was very important to me that the most-common actions take no more than a single line of code to perform – with even complex actions keeping nice and trim.
Open, and activate, a new tab pointing to Google.com
[js]Application.browser.open(“http://google.com/”).active = true;[/js]
Close the active browser tab
Close all tabs that mention Google
if ( tab.url.match(/google/) )
Add a new bookmark pointing to Mozilla
Remove all bookmarks pointing to Google.com
if ( cur.url.match(/google.com/) )
Development is still going strong on FUEL. There’s a Google Summer of Code student working on extending the API and porting it to more parts of the platform (along with backwards support for Firefox 2!). We’ll probably end up seeing this in Firefox 3.1 (the next version of Firefox, due out later this year).
If you have any questions concerning how to use FUEL, or to develop Firefox extensions in general, your best bet would probably be to join the #extdev IRC channel on irc.mozilla.org. Lots of knowledgeable people hang out there and will be more-than-capable of answering any questions that you might have.
Once again, I’m terribly excited by the final release of Firefox 3 – here’s hoping to many more excellent releases to come!