honestbleeps/Reddit-Enhancement-Suite — pull request #77 by umbrae (2012-03-06 15:24:14+00:00)
Title: New Module: Persist Hidden Comments across Page Loads

This is a little module that stores a list of hidden comments in localStorage, and then re-hides them on the page load.

Tricky bits:

1. It uses an array of keys to prune if the object gets too large. Right now it prunes at 500.

2. There was a little rendering issue with the comment navigator that I worked around with a setTimeout. I assume it was interacting poorly with another module. Feel free to play around with that if you want to see what I'm talking about, otherwise it works well.

Any thoughts appreciated!