Professional Programmer Notes

or just call this my soapbox

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 , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: