Professional Programmer Notes

or just call this my soapbox

Archive for the ‘XUL’ Category

Getting user information for Firefox extension using Javascript

leave a comment »

var userInfo =
Components.classes["@mozilla.org/userinfo;1"]
.getService(Components.interfaces.nsIUserInfo);

/*
userInfo will now have the following readonly properties:
username
domain
fullname
emailAddress
*/
Advertisements

Written by curtismitchell

October 21, 2008 at 9:35 am

Posted in Firefox, Javascript, XUL

Tagged with , , ,