Looking for an extension directory? Just google for firefox extensions.
Firefox is probably the best browser out there, and what’s better, you can do anything you want with it. It’s extensible through extensions. I guess you could play chess with it.
Where to Start?
Creating Firefox extensions Excellent newbie resource. A must read!
Writing Firefox Extensions More theory.
Cut your Development Cycle
I don’t think any developer wants to be re-packaging the XPI and installing it all the time just to write and test the code. You’ve got to have more room for experiments.
So I figured something out (backup early, backup often!):
- Package your XPI as usual and install it (with one close/reopen cycle of Firefox).
- Check whether it got installed allright.
- Close Firefox.
- Look at your firefox settings directory. Under your GUID you will find the extracted files from the XPI.
- Look for your extension jar.
- Extract it right where it is. In most cases, 2 directories will be created: content and skin.
- Rename the original jar to something different.
- Edit the chrome registry (chrome.rdf in your chrome directory).
- Look for all occurrences of your extension. Change the URLs with
jar:file:///long_stuff/chrome/mozgest.jar!/skin/classic/mozgest/ will become file:///long_stuff/chrome/skin/classic/mozgest/
- Now you can change your JS code as you like it. You only need to restart Firefox and the changes are in.
- Don’t forget to transfer your changes into your original src directory for your extension.
Leave a Reply
January 2nd, 2009 at 12:49 pm
Can you provide some more details on this?