(function(exports) { if (location != 'chrome://messenger/content/messenger.xhtml') return; const doc=gTabmail.tabInfo[0].chromeBrowser.contentWindow.document; //Icon Spalten justierbar machen const cols=['attachmentCol', 'unreadButtonColHeader']; exports.easyPeasy.makeIconColResizable=() => { for (const id of cols) { const th=doc.getElementById(id); //console.log('icon col '+id+' '+th.style.cssText); th.setAttribute('data-resizable', 'true'); //th.style='width: var(--'+id+'Splitter-width); '+th.style.toString(); //--'+id+'Splitter-width: 30px;'; th.style='width: var(--'+id+'Splitter-width); '+th.style.cssText; //--'+id+'Splitter-width: 30px;'; const hr=th.querySelector('hr'); hr.removeAttribute('disabled'); //console.log('icon col now '+id+' '+th.style.cssText); } } //on initial startup, "folderURIChanged" fires too early gTabmail.tabInfo[0].chromeBrowser.contentWindow.addEventListener("allMessagesLoaded", ()=>{ exports.easyPeasy.makeIconColResizable(); //make icon cols resizable after a switch of folders gTabmail.tabInfo[0].chromeBrowser.contentWindow.addEventListener("folderURIChanged", exports.easyPeasy.makeIconColResizable ); }, { once: true } ); })(this);