rem: if (!aTarget.hasChildNodes()) return; if (aTarget.lastChild.id == "openintabs-menuitem") { aTarget.removeChild(aTarget.lastChild); aTarget.removeChild(aTarget.lastChild); } 
add: #   sometimes insertions occur between the "open in tabs" menuitem and #   menuseparator. the eventual children of the menupopup have should #   have already been closed at this stage, so it''s ok to grab the first #   "open in tabs" menuitem and menuseparator. var nodeList; nodeList = aTarget.getElementsByAttribute("class", "openintabs-menuitem"); if (nodeList.length > 0) aTarget.removeChild(nodeList[0]); nodeList = aTarget.getElementsByAttribute("class", "openintabs-menuseparator"); if (nodeList.length > 0) aTarget.removeChild(nodeList[0]); 
context:   hideOpenInTabsMenuItem: function (aTarget)  {    if (!aTarget.hasChildNodes())      return;    if (aTarget.lastChild.id == "openintabs-menuitem") {      aTarget.removeChild(aTarget.lastChild);      aTarget.removeChild(aTarget.lastChild);    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3c63d27aac58ee829d673946d4f2c04181efe679/bookmarksMenu.js/clean/browser/components/bookmarks/content/bookmarksMenu.js