CurtisMitchell

IThinkTherefore, IBlog

Archive for October, 2008

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
*/

Written by curtis

October 21st, 2008 at 9:35 am

Posted in Firefox, Javascript, XUL

Tagged with , , ,