message: Hide and auto-expand Similar comments in `hide-useless-comments`
diff: @@ -12,12 +12,28 @@ function unhide(event: delegate.Event<MouseEvent, HTMLButtonElement>): void {
  comment.hidden = false;
  }
  + // Expand all "similar comments" boxes
  + for (const similarCommentsExpandButton of select.all('.js-discussion .Details-content--closed > span:only-child')) {
  + similarCommentsExpandButton.click();
  + }
  +
  select('.rgh-hidden-comment')!.scrollIntoView();
  event.delegateTarget.parentElement!.remove();
  }
  +function hideComment(comment: HTMLElement): void {
  + comment.hidden = true;
  + comment.classList.add('rgh-hidden-comment');
  +}
  +
  function init(): void {
  let uselessCount = 0;
  +
  + for (const similarCommentsBox of select.all('.js-discussion .Details-element')) {
  + hideComment(similarCommentsBox);
  + uselessCount++;
  + }
  +
  for (const commentText of select.all('.comment-body > p:only-child')) {
  if (!isUselessComment(commentText.textContent!)) {
  continue;
  @@ -43,8 +59,7 @@ function init(): void {
  continue;
  }
  - comment.hidden = true;
  - comment.classList.add('rgh-hidden-comment');
  + hideComment(comment);
  uselessCount++;
  }
  