rem: window.focus(); 
add: if (client.prefs["link.focus"]) window.focus(); 
context: function cmdGotoURL(e){    const IO_SVC = "@mozilla.org/network/io-service;1";    const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1";    if (e.url.search(/^ircs?:/i) == 0)    {        gotoIRCURL(e.url);        return;    }    if (e.url.search(/^x-cz-command:/i) == 0)    {        var ary = e.url.match(/^x-cz-command:(.*)$/i);        e.sourceObject.frame.contentWindow.location = "javascript:void(view.dispatch('" +                                                      decodeURI(ary[1]) + "'))";        return;    }    if (e.command.name == "goto-url-external")    {        const ioSvc = getService(IO_SVC, "nsIIOService");        const extProtoSvc = getService(EXT_PROTO_SVC,                                       "nsIExternalProtocolService");        var uri = ioSvc.newURI(e.url, "UTF-8", null);        extProtoSvc.loadUrl(uri);        return;    }    if (e.command.name == "goto-url-newwin")    {        openTopWin(e.url);        return;    }    var window = getWindowByType("navigator:browser");    if (!window)    {        openTopWin(e.url);        return;    }    window.focus();    if (e.command.name == "goto-url-newtab")    {        if (client.host == "Mozilla") {            window.openNewTabWith(e.url, false, false);        } else {            window.openNewTabWith(e.url);        }        return;    }    var location = window.content.document.location;    if (location.href.indexOf("chrome://chatzilla/content/") == 0)    {        // don't replace chatzilla running in a tab        openTopWin(e.url);        return;    }    location.href = e.url;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/65c523650e387413d2bd268b7d6c2877a858d87f/commands.js/clean/extensions/irc/xul/content/commands.js