Wikipedia Lookup - development blog

Development blog for the Wikipedia Lookup addon for Firefox. Just some random notes on what's going on and addon development

Wednesday, July 15, 2009

Firefox 3.5 compatible

Finally the add-on got reviewed by the people and the new version will now be available for everyone who's upgraded to Firefox 3.5!

I am the first to admit that my add-on does not get updated very often. I haven't added any new features in years. None the less people use this cute little tool every day. The statistics below show just how much the add-on is used every day. I was not aware of this and it makes me think that maybe I should put a little more effort into listening to what you guys out there want improved. Hopefully I will be able to add the most requested feature of having the option to select different languages from the right-click meny.

Sunday, May 18, 2008

Firefox 3 compliancy coming up...

I am happy to tell you that I finally got my workspace set up for my Firefox extension development so I have upgraded it to work with Firefox 3. It's still pending approval from the Firefox people but it should be ready for you in a couple of days!
Thanks for your patience and keep a look out on Add-ons page over at

Tuesday, May 13, 2008

I am so sorry

Ever since I started working for the online music service, Ezmo, the day just did not have enough hours for me to maintain and update this add on. To those of you who's left comments and asked questions: I am sorry that I haven't replied.

This is all going to change and I will upgrade it to work with Firefox 3.

Wednesday, September 20, 2006

Updates are taking a while...

I am gonna start off by apologizing for being extremely late with the language update. Somewhere down the line I just stopped thinking about my little Wikipedia add-on, so there really is no excuse.
To all of you who have waited to long for the addon to work for your language I can inform you that it is not coming out until late October. The reason for this is that I am finally going on my summer vacation!

Friday, August 11, 2006


I guess I have to rename the Wikipedia Lookup Extension to Wikipedia Lookup Addon.. Maybe I should just call it Wikipedia Lookup and just drop the whole addons/extension bit?
What do you think? I'm probably the only one who actually cares what this thing is called anyway :)

My development efforts are currently focused on refactoring the code for the addon, because I've got to admit that it was very crappy indeed. So I've pulled myself together and started restructuring. I also started using Ant for building the XPI. Reason for this being that I needed a bit more flexibility than my trusted old batch-file could provide me with.

Some of the new features I've already mentioned, but here's the prioritized list:
  • Statusbar searchbox
  • Language support in preferences using RDF
  • Locale support in the interface

A side project is trying to implement support for the WLE in Thunderbird 1.5.x versions. Despite my early frustrations I think this is gonna be an exciting adventure!

Monday, July 31, 2006

Not quite so frustrated..

My previous post was about frustrations related to Extension development. I poked around the MozillaZine forums to try and see if I was a complete moron or if in fact some other people are having the same kinds of problems.

I was really happy when I encountered this thread which I think has a few good points. 1) It shouldn't be this difficult to create an extension for both FF and TB (I guess that's short for Thunderbird) 2) There is always some smart guy out there who actually knows how easy it is.
In the thread the Extension Wizard is mentioned. I wish I'd known about that one when I started out. Basically it does all the boring and unnecessary complicated stuff for you. It creates an extension with the preferences you want.
So for anyone starting out with extension development I think this would be a huge help for both getting started and to get a sense of how one should design code for an extension.

Porting the WLE to Thunderbird

Being a naive young man I thought "Hey, why don't I port my extension over to Thunderbird!". Both products are from the Mozilla Foundation and I've read that it's pretty much the same thing to create extensions for Firefox and Thunderbird.

I updated the install.rdf and got Thunderbird to accepts it, and I thought "wow, it actualy is easy". That was until I tried to do anything with the extension. Of course it didn't work. Not even the extension options worked in Thunderbird. It seems like there's some issues with the chrom URI's or something...

Whatever it is, I can document that it's NOT the same thing to create extensions for Firefox and Thunderbird. So I guess I have to do some more surfing on MozillaZina and Mozilla Development Central...

Sunday, July 30, 2006

0.3.0 beta available

I have just uploaded the beta of the new 0.3.0 release of the WLE onto the BOSS distribution directory. To install it just save the XPI onto your system and then open it in Firefox, this will start the installation.

You are welcome to download it and check it out, but as with all Beta software this is something you do at your own risk and I can not be hold responsible for messing up your browser.

Some of the features are already mentioned on this blog and I relay think those features elevates the extension to a higher level. It's not just some simple plugin, but it actually does something more that just open a new tab.

Please let me know if you encounter any problems with the new release. If you are running Linux or Mac please let me know if it works for you too. I do not have access to a computer running Linux or OS X, so it would be nice to know if it actually works on all platforms. Just add a comment to the page to let me know what you think.

Introducing the WLE statusbar!

I am very happy to introduce a new killer feature for the Wikipedia Lookup Extension. While working on the new lookup feature I also started playing with one feature I planned from day one. Having an item in the statusbar which could be clicked to display a search box which the user could use to write queries to Wikipedia.

In its initial positing the statusbar just contains a small icon as seen in the screenshot below.
. The icon isn't very cool or created in a good way, but you might see that it looks somewhat like the icon in the about section of the extension.

Expanding the statusbar provides the user with a textbox to enter a query for Wikipedia. In order to save space in the statusbar I decided not to add a button, but instead just handle the "Enter" keyboard event.

I hope that this new feature is something that more people than myself find useful. Regardless of it's success I find it pretty useful and I learnt some more stuff about writing extensions for Firefox. It is sometimes a pain and quite frustrating, but in the end it's worth it.

Lookup enabled for textareas and textboxes

I read some of the comments on and there where some interesting feature requests there.

The first priority was the language issues, which I understand is an important feature. I too have a need for looking up both English and Norwegian word, so I am too very happy this feature is in place.

Secondly was a feature I hadn't thought of, which was that the extension couldn't lookup word inside a textarea or textbox. So I sat down on a hot Sunday evening here in Oslo and thought I'd give it a shot.

Getting the WLE to lookup inside a other controls wasn't as easy as I'd hoped. You couldn't just use the gContextMenu.isTextSelected. Some googling later I discovered the document.commandDispatcher.focusedElement property and then everything was pretty straight forward.