View deleted stuff from reddit
Find a file
Christopher Gurnee df0c86aac0 Don't fetch removed link-posts from Pushshift
Removed/deleted self-posts are still fetched from Pushshift to get
the selftext, however there's no value in fetching link-posts.

Also:

 * Don't display '[deleted]' if no selftext was deleted.
 * Add key attributes to the post <div> so that React recreates
   it instead of mutating it after the Post loads. This prevents
   transitioning the background color (from the dark/light mode css).
2022-04-14 22:25:17 +00:00
dist Flash 'show' setting if all comments are filtered 2022-04-09 15:56:02 +00:00
src Don't fetch removed link-posts from Pushshift 2022-04-14 22:25:17 +00:00
.babelrc Update dependencies 2022-04-14 21:04:54 +00:00
.gitignore Update dependencies 2021-10-12 14:48:29 +00:00
LICENSE Updated license 2018-02-18 01:31:59 +01:00
package-lock.json Update dependencies 2022-04-14 21:04:54 +00:00
package.json Update dependencies 2022-04-14 21:04:54 +00:00
README.md Update dependencies 2022-03-25 16:53:39 +00:00
webpack.config.js Update dependencies 2021-10-06 22:02:14 +00:00

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 Unddit:

git clone https://github.com/gurnec/removeddit.git

Download npm, or update your existing npm to the latest version:

mkdir npm && cd npm
npm --no-package-lock install npm
mv node_modules ../removeddit/ && cd ../removeddit && rmdir ../npm
alias npm="$(pwd)/node_modules/.bin/npm"

Build the Javascript files and launch a local server for development:

npm install
npm start

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 built separately (to keep the build steps / configs very simple) by running:

npm run css