Beforehand, visiting a permalink would cause Unddit to begin loading from the Post's first comment. If the max-to-download setting was too small, and the permalinked comment wasn't yet encountered, no comment tree would be displayed. Now, only comments that occur at the same time as the permalinked comment or later (chronologically) are downloaded. This also adds a Parent link to each comment. When viewing a permalinked comment, clicking the top-level Parent link will download only new comments between the parent and child comments. Likewise, clicking the 'view rest of comments' link will only download new comments from the first comment up until the previously viewed comment. In general, Unddit will not re-download comments that it knows it has previously downloaded, nor download more than max-to-download comments per link clicked. This can leave 'gaps' in the list of downloaded comments. If the 'load more comments' link is clicked, Unddit will only download comments that can fill such gaps between the currently-linked permalink (or if not viewing one, the first comment) and the last, up to the max-to-download setting. |
||
|---|---|---|
| dist | ||
| src | ||
| .babelrc | ||
| .gitignore | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| TODO | ||
| webpack.config.js | ||
Unddit
Unddit is a site for undoing the removal of comments for Reddit.
Just go to any Reddit post and replace the re of reddit in the URL with un to see all removed comments.
This is a done by comparing the comments being stored in Jason Baumgartner's Pushshift Reddit API and the ones from Reddit's API. The frontend, developed by Jesper Wrang and originally available at removeddit.com, is written in React and uses Sass as the CSS Preprocessor.
Development
Download npm
git clone https://github.com/gurnec/removeddit.git && cd removeddit
npm install
npm start
This will build the Javascript files and launch a local server for development. Visit http://localhost:8080 and make sure the site is running. If you're getting connection errors to Reddit or Pushshift, it might be because you're running a VPN. Try turning it off for development.
The CSS is build seperatly (to keep the build steps / configs very simple) by running
npm run css