From 7281ca23d5bf458f411638bc1a3d5044a3830564 Mon Sep 17 00:00:00 2001 From: Jesper Wrang Date: Sat, 4 Nov 2017 20:03:15 +0100 Subject: [PATCH] Better structure for static files --- README.md | 8 ++++---- index.html | 4 ++-- static/{ => css}/style.css | 0 static/{ => images}/done.png | Bin static/{ => images}/error.png | Bin static/{ => images}/favicon.ico | Bin static/{ => images}/loading.gif | Bin static/{ => js}/functions.js | 24 ++++++++++------------- static/{ => js}/id.js | 0 static/{ => js/libraries}/lodash.min.js | 0 static/{ => js/libraries}/snuownd.js | 0 static/{ => js/polyfills}/fetch.js | 0 static/{ => js/polyfills}/promise.min.js | 0 static/{ => js}/subreddit.js | 0 static/{ => js}/thread.js | 10 +++++----- subreddit.html | 21 ++++++++++---------- thread.html | 20 +++++++++---------- 17 files changed, 41 insertions(+), 46 deletions(-) rename static/{ => css}/style.css (100%) rename static/{ => images}/done.png (100%) rename static/{ => images}/error.png (100%) rename static/{ => images}/favicon.ico (100%) rename static/{ => images}/loading.gif (100%) rename static/{ => js}/functions.js (94%) rename static/{ => js}/id.js (100%) rename static/{ => js/libraries}/lodash.min.js (100%) rename static/{ => js/libraries}/snuownd.js (100%) rename static/{ => js/polyfills}/fetch.js (100%) rename static/{ => js/polyfills}/promise.min.js (100%) rename static/{ => js}/subreddit.js (100%) rename static/{ => js}/thread.js (99%) diff --git a/README.md b/README.md index a1b427c..9ffdfe1 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ # Removeddit -[Removeddit](https://removeddit.com) is a site for viewing removed comments from [Reddit](https://www.reddit.com). +[Removeddit](https://removeddit.com) is a site for viewing removed and deleted comments from [Reddit](https://www.reddit.com). Usage: go to any reddit thread and change the `reddit` in the URL to `removeddit`. The site will only display the removed comments and thier parents, not the full thread. -This is a done by comparing the comments found from Reddit API and comments from [Jason Baumgartners](https://pushshift.io/) [Pushshift Reddit API](https://github.com/pushshift/api). The frontend is written in pure Javascript (ES6). You can use this code however you want, as long as it's non-commercial. +This is a done by comparing the comments found from Reddit API and comments from [Jason Baumgartners](https://pushshift.io/) [Pushshift Reddit API](https://github.com/pushshift/api). The frontend is written with a fuckington of promises and some [Lodash](https://lodash.com/). You can use this code however you want, as long as it's non-commercial (and preferably open source). # The "I just want to get this shit running" guide Using [Ubuntu 16.04](http://releases.ubuntu.com/16.04/) and [nginx](https://www.nginx.com/resources/wiki/) ``` sudo git clone https://github.com/JubbeArt/removeddit.git /var/www/removeddit sudo apt install -y nginx -sudo cp /var/www/removeddit/config/basic /etc/nginx/sites-available/default +sudo cp /var/www/removeddit/config/basic /etc/nginx/sites-available/default ``` Create a reddit app [here](https://www.reddit.com/prefs/apps/), select **installed app**. For "redirect url" it doesn't really matter in this case, you can pick `http://localhost`. Copy the **client ID** for your app set it as a variable in `id.js`, e.g. with ``` -sudo nano /var/www/removeddit/static/id.js +sudo nano /var/www/removeddit/static/js/id.js # Insert with ctrl-shift-v # Save with ctrl-o, exit with ctrl-x ``` diff --git a/index.html b/index.html index 20aebb9..2669a4d 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,8 @@ - - + +