add:  var searchContainer = document.getElementById('search-container'); if (searchContainer) searchContainer.parentNode.removeChild(searchContainer);     var toolbarPalette = document.getElementById('mail-toolbox').palette; toolbarPalette.removeChild(toolbarPalette.getElementsByAttribute('id', 'search-container')[0]); toolbarPalette.removeChild(toolbarPalette.getElementsByAttribute('id', 'mailviews-container')[0]); toolbarPalette.removeChild(toolbarPalette.getElementsByAttribute('id', 'folder-location-container')[0]); 
context: function HideToolbarButtons(){  // How can we remove these two items from the palette as well?   var mailToolbar = document.getElementById('mail-bar2');  if (mailToolbar)  {    var defaultSet = mailToolbar.getAttribute("defaultset");    defaultSet = defaultSet.replace(/search-container/i, "");    defaultSet = defaultSet.replace(/mailviews-container/i, "");    mailToolbar.setAttribute('defaultset', defaultSet);  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ea72d89df19cb0018b512442d9c40f7c71d8fe35/messageWindow.js/clean/mail/base/content/messageWindow.js