A place for my programming projects and the occasional blog about technology related matters.
XUL Reference
Source code - addons.mozilla.org page - Version history
This is one of the few extension I didn’t do for a request. I did it for myself when I was learning xul and constantly looking things up on xulplanet.com. The extension allows you to highlight names of xpcom/xul/xbl components and interfaces in webpages, then right-click and go straight to its page on xulplanet.com, which is the best xul reference out there.. This is more than a search engine plugin because the extension knows the names of all XPCOM components and interfaces, XUL elements, XBL Elements, events, scriptable objects and common properties/attributes/style-classes of the XULElement. If you highlight one of those, then the right click menu will show you what type of object you’ve selected and open a background tab with the reference page for that object. For instance, if you select the word nsIMsgFolder, then the right click menu will show ‘XUL Reference (XPCOM interface)’ and clicking on it will open the reference page for nsIMsgFolder in a background tab.
The selection doesn’t have be be totally accurate, these will all work:
@mozilla.org/addressbook/cardproperty;1
Components.classes[”@mozilla.org/addressbook/cardproperty;1″].QueryInterface
Cc[”@mozilla.org/addressbook/cardproperty;1″]
[”@mozilla.org/addressbook/cardproperty;1″]
nsIMsgFolder
(Components.interfaces.nsIMsgFolder)
button
[button id=”foo”]
click
onclick
The data files with all the names ship with the extension, but they can be updated by going to Tools - XULReference and there hitting the ‘Reload data’ button. Then it will fetch all component names again from xulplanet.com
Works with:
Firefox: 2.0 – 2.0.0.*
Latest version: 1.0
Comment