I've done a lot of unexpected things in grad school, but I never thought I'd find myself writing Firefox extensions. But we're doing some experiments in finding patterns in web browsing, and I needed to add an entry to the Firefox history database when the user hits the back button. Firefox doesn't normally do this, but a developer hanging out on #firefox assured me it was possible.
It turned out to be only about 10 lines of javascript, but of course coming up with the right 10 lines of javascript, and figuring out how to package them into an extension, took all day.
I'll try to post more details once I get a chance to clean out all my debugging code and hopefully make a more minimal version than what I have.
Re: My first Firefox extension
waltman on 2008-07-30T17:13:55
It turns out what I had had a few bugs in it. I think I found them all, and also cleared out all the cruft. (I based it on a sample app that was doing a lot more than I needed.)I'll try to post the code tonight.