In the beginning…
Tutorial No Comments »Today, I made the project files for BookSmarts.
You used to have to do lots of thinking and reading to make an extension; now a handy chap called Ted has written an extension wizard.
Ted’s wizard makes a perfectly structured base for starting extensions, all bundled up into a neat zip archive. He even includes shell scripts for packaging it all up into an extension file.
If you’re very new to Firefox extension development, then you would do well to read the Mozilla docs on the files in the extension package. They give a good overview and I’m much more interested in writing code than explaining things that have been explained over and over by people much better at it than me.
This isn’t a single page tutorial, it’s more of a log of the pain of extension development, a guide as to how “I” do it (it’s my way, not THE way) and, hopefully, a source of answers for common problems that tutorials won’t cover so well.
Anyway, I used Ted’s tool as a starting point for BookSmarts. I like to put my chrome in a chrome sub-directory (which helps with my Ant replace script later) so I made some changes to the chrome.manifest (I added “chrome/” in a couple of places).
If you download the folder and run ant, it should build an xpi for you to try in Firefox. It should all work.