rem: #   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]); 
add: if (aTarget.hasChildNodes() && aTarget.lastChild.getAttribute("class") == "openintabs-menuitem") { aTarget.removeChild(aTarget.lastChild); aTarget.removeChild(aTarget.lastChild); } 
context:   hideOpenInTabsMenuItem: function (aTarget)  {#   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]);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0ea0298c6355ff22101b3981a9c768729257d980/bookmarksMenu.js/clean/browser/components/bookmarks/content/bookmarksMenu.js