rem: menuitem = menuitem.nextSibling; } 
add: if (menuitem.hasAttribute("checkedif")) { if (evalIfAttribute(menuitem, "checkedif")) menuitem.setAttribute ("checked", "true"); else menuitem.setAttribute ("checked", "false"); }  var format = menuitem.getAttribute("format"); if (format) { format = format.replace (/\$nick/gi, targetProperNick); format = format.replace (/\$viewname/gi, client.currentObject.name); menuitem.setAttribute ("label", format); }  } while ((menuitem = menuitem.nextSibling));  return true; 
context: function onOutputContextMenuCreate(e){    var target = document.popupNode;    var foundSomethingUseful = false;    var targetType;        do    {        if (target.tagName == "html:a" ||            target.tagName == "html:td")            foundSomethingUseful = true;        else            target = target.parentNode;    } while (target && !foundSomethingUseful);        var targetType = createPopupContext(e, target);    var targetClass = client._popupContext.targetClass;    var viewType = client.currentObject.TYPE;    var targetIsOp = "n/a";    var targetIsVoice = "n/a";    var iAmOp = "n/a";    var targetUser = String(client._popupContext.user);    var targetServer = getObjectDetails(client.currentObject).server;    if (targetServer && targetUser == "ME!")    {        targetUser = targetServer.me.nick;    }    var targetProperNick = targetUser;    if (targetServer && targetServer.users[targetUser])        targetProperNick = targetServer.users[targetUser].properNick;        if (viewType == "IRCChannel" && targetUser)    {        var cuser = client.currentObject.users[targetUser];        if (cuser)        {            targetIsOp = cuser.isOp ? "yes" : "no";            targetIsVoice = cuser.isVoice ? "yes" : "no";        }                var server = getObjectDetails(client.currentObject).server;        if (server)            iAmOp = client.currentObject.users[server.me.nick].isOp ?                "yes" : "no";    }    var popup = document.getElementById ("outputContext");    var menuitem = popup.firstChild;    while (menuitem)    {        var showfor = menuitem.getAttribute("showfor");                if (showfor)        {            showfor = showfor.replace (/\Wis\W/gi, " == ");            showfor = showfor.replace (/\Wor\W/gi, " || ");            showfor = showfor.replace (/\Wand\W/gi, " && ");            if (eval("(" + showfor + ")"))            {                var format = menuitem.getAttribute("format");                if (format)                {                    format = format.replace (/\$nick/gi, targetProperNick);                    menuitem.setAttribute ("label", format);                }                menuitem.setAttribute ("hidden", "false");            }            else                menuitem.setAttribute ("hidden", "true");        }                menuitem = menuitem.nextSibling;    }}
meta: 1567	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1567/050cdabf1fdd264ec70170f737d010f1e60b30e3/handlers.js/clean/xul/content/handlers.js