rem: client.NEW_TAB_THRESHOLD = getIntPref (pref, rootNode + "newTabThreshold", 15); client.FOCUS_NEW_TAB = getIntPref (pref, rootNode + "focusNewTab", false); 
add: client.NEW_TAB_LIMIT = getIntPref (pref, rootNode + "newTabLimit", 15); client.RAISE_NEW_TAB = getBoolPref (pref, rootNode + "raiseNewTab", false); 
context: function readIRCPrefs (rootNode){    const PREF_CTRID = "@mozilla.org/preferences-service;1";    const nsIPrefBranch = Components.interfaces.nsIPrefBranch    var pref = Components.classes[PREF_CTRID].getService(nsIPrefBranch);    if(!pref)        throw ("Can't find pref component.");    if (!rootNode)        rootNode = "extensions.irc.";    if (!rootNode.match(/\.$/))        rootNode += ".";        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);    client.DEFAULT_NETWORK =        getCharPref (pref, rootNode + "defaultNet", "moznet");    client.CHARSET = getCharPref (pref, rootNode + "charset", "");    client.INITIAL_URLS =        getCharPref (pref, rootNode + "initialURLs", "irc://");    if (!client.INITIAL_URLS)        client.INITIAL_URLS = "irc://";    client.INITIAL_SCRIPTS =        getCharPref (pref, rootNode + "initialScripts", "");    client.NEW_TAB_THRESHOLD =        getIntPref (pref, rootNode + "newTabThreshold", 15);    client.FOCUS_NEW_TAB =        getIntPref (pref, rootNode + "focusNewTab", false);    client.ADDRESSED_NICK_SEP =        getCharPref (pref, rootNode + "nickCompleteStr",                     client.ADDRESSED_NICK_SEP).replace(/\s*$/, "");    client.INITIAL_VICTIMS =        getCharPref (pref, rootNode + "stalkWords", "");        client.DELETE_ON_PART =        getCharPref (pref, rootNode + "deleteOnPart", true);    client.STALK_BEEP =        getCharPref (pref, rootNode + "stalkBeep", "beep");    client.MSG_BEEP =        getCharPref (pref, rootNode + "msgBeep", "beep beep");    client.QUERY_BEEP =        getCharPref (pref, rootNode + "queryBeep", "beep");        client.munger.enabled =        getBoolPref (pref, rootNode + "munger", client.munger.enabled);    client.enableColors =        getBoolPref (pref, rootNode + "munger.colorCodes", true);    client.smileyText =        getBoolPref (pref, rootNode + "munger.smileyText", false);    for (var entry in client.munger.entries)    {        if (entry[0] != ".")        {            client.munger.entries[entry].enabled =                getBoolPref (pref, rootNode + "munger." + entry,                             client.munger.entries[entry].enabled);        }    }    client.FLASH_WINDOW =        getBoolPref (pref, rootNode + "notify.aggressive", true);    client.SAVE_SETTINGS =        getBoolPref (pref, rootNode + "settings.autoSave", true);    client.DEFAULT_STYLE =        getCharPref (pref, rootNode + "style.default",                     "chrome://chatzilla/skin/output-default.css");        client.COLLAPSE_MSGS =         getBoolPref (pref, rootNode + "views.collapseMsgs", false);    client.COPY_MESSAGES =         getBoolPref (pref, rootNode + "views.copyMessages", true);    client.MAX_MESSAGES =         getIntPref (pref, rootNode + "views.client.maxlines",                    client.MAX_MESSAGES);    CIRCNetwork.prototype.MAX_MESSAGES =        getIntPref (pref, rootNode + "views.network.maxlines",                    CIRCChanUser.prototype.MAX_MESSAGES);    CIRCChannel.prototype.MAX_MESSAGES =        getIntPref (pref, rootNode + "views.channel.maxlines",                    CIRCChannel.prototype.MAX_MESSAGES);    CIRCUser.prototype.MAX_MESSAGES =        getIntPref (pref, rootNode + "views.chanuser.maxlines",                    CIRCChanUser.prototype.MAX_MESSAGES);        var h = client.eventPump.getHook ("event-tracer");    h.enabled = client.debugMode =        getBoolPref (pref, rootNode + "debug.tracer", h.enabled);    }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/cec2c08e47b26462051b77c877240842832fa2c4/readprefs.js/clean/extensions/irc/xul/content/readprefs.js