export const removeEmptyContainers = ( ) => { const commentTrs = document . querySelectorAll ( '.history-table > tbody tr[data-postid]' ) ; commentTrs . forEach ( ( commentTr ) => { const rowstatsContainer = commentTr . querySelector ( '[data-cpuserscript-rowstats]' ) ! ; const [ questionBox , answerBox ] = rowstatsContainer . children ; if ( ! questionBox . textContent ) { rowstatsContainer . remove ( ) ; } else if ( ! answerBox . textContent ) { answerBox . remove ( ) ; } } ) ; } ;