rem: Components.classes["component: 
add: Components.classes["@mozilla.org/preferences;1"].createInstance(); 
context: function readIRCPrefs (rootNode){    var pref =        Components.classes["component://netscape/preferences"].createInstance();    if(!pref)        throw ("Can't find pref component.");    if (!rootNode)        rootNode = "extensions.irc.";    if (!rootNode.match(/\.$/))        rootNode += ".";        pref = pref.QueryInterface(Components.interfaces.nsIPref);    CIRCNetwork.prototype.INITIAL_NICK =        getCharPref (pref, rootNode + "nickname",                     CIRCNetwork.prototype.INITIAL_NICK);    CIRCNetwork.prototype.INITIAL_NAME =        getCharPref (pref, rootNode + "username",                     CIRCNetwork.prototype.INITIAL_NAME);    CIRCNetwork.prototype.INITIAL_DESC =        getCharPref (pref, rootNode + "desc",                     CIRCNetwork.prototype.INITIAL_DESC);    CIRCNetwork.prototype.INITIAL_CHANNEL =        getCharPref (pref, rootNode + "channel",                     CIRCNetwork.prototype.INITIAL_CHANNEL);    client.STARTUP_NETWORK =        getCharPref (pref, rootNode + "network", "");    client.munger.enabled =        getBoolPref (pref, rootNode + "munger", client.munger.enabled);    client.ICONS_IN_TOOLBAR =         getBoolPref (pref, rootNode + "toolbar.icons", true);    client.FLASH_WINDOW =        getBoolPref (pref, rootNode + "notify.aggressive", true);    client.DEFAULT_STYLE =        getCharPref (pref, rootNode + "style.default", "output-default.css");    client.USER_CSS_PRE =        getCharPref (pref, rootNode + "style.user.pre", "");    client.USER_CSS_POST =        getCharPref (pref, rootNode + "style.user.post", "");    client.MAX_MESSAGES =         getIntPref (pref, rootNode + "views.client.maxlines",                    client.MAX_MESSAGES);    CIRCChannel.prototype.MAX_MESSAGES =        getIntPref (pref, rootNode + "views.channel.maxlines",                    CIRCChannel.prototype.MAX_MESSAGES);    CIRCChanUser.prototype.MAX_MESSAGES =        getIntPref (pref, rootNode + "views.chanuser.maxlines",                    CIRCChanUser.prototype.MAX_MESSAGES);        var h = client.eventPump.getHook ("event-tracer");    h.enabled =        getBoolPref (pref, rootNode + "debug.tracer", h.enabled);    }
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/fc720666f1aeaab056df2fc039d8d9a7af57d54f/readprefs.js/buggy/xul/content/readprefs.js