rem:   var winMenu   = document.getElementById("windowMenu"); var tasksMenu = document.getElementById("tasksMenu"); var toolsMenu = document.getElementById("mainmenu:tools"); var comBar    = document.getElementById("component-bar");  if (client.host == "Firefox") { tasksMenu.parentNode.removeChild(tasksMenu); winMenu.parentNode.removeChild(winMenu); } else { comBar.collapsed = false; }  if ((client.host != "Firefox") || (client.platform == "Linux")) { toolsMenu.parentNode.removeChild(toolsMenu); } 
add: else client.lineEnd = "\n"; 
context: function initApplicationCompatibility(){    // This routine does nothing more than tweak the UI based on the host    // application.    var windowMenu = document.getElementById("windowMenu");    // Set up simple host and platform information.    client.host = "Mozilla";    if (!windowMenu.firstChild)        client.host = "Firefox";    client.platform = "Unknown";    if (navigator.platform.search(/mac/i) > -1)        client.platform = "Mac";    if (navigator.platform.search(/win/i) > -1)        client.platform = "Windows";    if (navigator.platform.search(/linux/i) > -1)        client.platform = "Linux";    client.hostPlatform = client.host + client.platform;    CIRCServer.prototype.OS_RPLY = navigator.oscpu + " (" +                                   navigator.platform + ")";    CIRCServer.prototype.HOST_RPLY = client.host + ", " + client.platform;    // Windows likes \r\n line endings, as wussy-notepad can't cope with just    // \n logs.    if (client.platform == "Windows")        client.lineEnd = "\r\n";    // The menus and the component bar need to be hidden on some hosts.    var winMenu   = document.getElementById("windowMenu");    var tasksMenu = document.getElementById("tasksMenu");    var toolsMenu = document.getElementById("mainmenu:tools");    var comBar    = document.getElementById("component-bar");    if (client.host == "Firefox") {        tasksMenu.parentNode.removeChild(tasksMenu);        winMenu.parentNode.removeChild(winMenu);    } else {        comBar.collapsed = false;    }    if ((client.host != "Firefox") || (client.platform == "Linux")) {        toolsMenu.parentNode.removeChild(toolsMenu);    }}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/00b6cdf954399a8f3562bddaefd3164388596abb/static.js/clean/xul/content/static.js