So, this is a reddit gold feature which enables a user to highlight all the new comments on a link since he last visited the page. I have also added keyboard shortcuts Shift+UpArrow & Shift+DownArrow to goto the nearest new comment.
The extension has 2 configurations:
- Maximum History: The total number of records to keep in the local storage.
- Pixels: The number of pixels to keep above the new comment when the extension scrolls using Shift + Up/Down arrow key.
The Options can of coarse be accessed via Extensions page. The code is available at: https://github.com/shadyabhi/Reddit-New-Comments-Highlighter & can be installed via Webstore at https://chrome.google.com/webstore/detail/ajdilinnnkbmpoegibgacadjlblmpjad
TODO: Trigger highlighting when user presses "load more comments" on threads with hundreds of comments.