export const highlightCommentsWithoutData = ( rowstatsContainersByIds , apiCommentIds , apiPostIds , savedComments ) => { [ ... rowstatsContainersByIds . byComment . entries ( ) ] . forEach ( ( [ commentId , rowstatsContainer ] ) => { if ( apiCommentIds . has ( commentId ) ) { return ; } const tr = rowstatsContainer . closest ( 'tr' ) ! ; const postId = Number ( tr . dataset . postid ) ; const commentText = tr . querySelector ( 'td:nth-child(3) > span' ) ! . textContent ! ; const commentIsPossibleDuplicateOf = commentText . startsWith ( 'Possible duplicate of ' ) || commentText . startsWith ( 'Does this answer your question? ' ) ; if ( ! apiPostIds . has ( postId ) ) { tr . setAttribute ( 'data-cpuserscript-post-removed' , '' ) ; } else if ( savedComments [ commentId ] && savedComments [ commentId ] . selfDeleted ) { tr . setAttribute ( 'data-cpuserscript-self-deleted' , '' ) ; } else if ( commentIsPossibleDuplicateOf ) { tr . setAttribute ( 'data-cpuserscript-duplicate-removed' , '' ) ; } else { tr . setAttribute ( 'data-cpuserscript-comment-removed' , '' ) ; } } ) ; } ;