The adventures of two Stanford Computer Science students as they build a web application from scratch.

Wednesday, May 16, 2007

Firefox Extension Progress


So I've begun the Firefox extension. Writing an extension in XUL and JS for Firefox is likely one of the least pleasant programming experiences I've had. My main problem with it is the lack of decent tools for debugging. As far as I can tell, unless you have a glaring syntax error somewhere in your code, you never hear about any problems from the browser. Rather, your JS thread just exceptions out silently and stops execution.

Despite these difficulties, I think we've beaten down the hard part of the plugin. You can now pull up a sidebar with a keyboard shortcut and it will notice what track what page your eyeballs are on. All that remains now is to yank data with the API and show it in a snazzy way. As proof that the extension is somewhat functional, enjoy this screenshot.

If anyone has any experience in building extensions like this please drop me a line and give me some hints :) I'm spending more time looking at example code than I am writing my own, but more information will help. Also, Ben should post sometime soon with a screenshot of how he's prettied up the web interface.

0 comments: