1. 9

I thought I’d share this quick bookmarklet (WFM on Firefox Nightly and Chrome, YMMV):

javascript:void(
 (
  function () {
    if (!document.unreadElements) {
      document.unreadElements = [...document.querySelectorAll('[class*=unread]')]
    }

    document.unreadElements[0].scrollIntoView();
    document.unreadElements.unshift(document.unreadElements.pop())
  }
 )()
)

Just paste this into a new bookmark and click the bookmarklet to scroll through all the new comments.

  1.  

  2. 1

    I just realized that the elements are in the reverse order (bottom to top) for whatever reason. The fix is to either sort them by distance to the top of the document body…or just reverse the whole array. It’s programming by coincidence, but I opted to just reverse the array.

    javascript:void(
     (
      function () {
        if (!document.unreadElements) {
          document.unreadElements = [
            ...document.querySelectorAll('[class*=unread]')
          ].reverse()
        }
    
        if (document.unreadElements.length == 0) { return }
    
        document.unreadElements[0].scrollIntoView();
        document.unreadElements.unshift(document.unreadElements.pop())
      }
     )()
    )