Skip to content

Convert any reddit page to a presentation or slide show

License

Notifications You must be signed in to change notification settings

dd-gamer/redditp

This branch is 2 commits ahead of, 38 commits behind ubershmekel/redditp:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7aa7235 · Jun 14, 2022
Dec 16, 2017
May 12, 2022
Jul 26, 2016
Jun 14, 2022
Dec 21, 2020
Nov 20, 2017
Dec 21, 2020
Dec 16, 2017
Feb 27, 2020
Jun 1, 2017
Nov 4, 2021
Nov 4, 2021
Dec 11, 2015
Jun 14, 2022
Feb 15, 2019
Nov 20, 2017
Jun 1, 2017
May 8, 2022
Mar 22, 2022
Dec 20, 2020
Nov 20, 2017
Dec 20, 2020

Repository files navigation

redditp

A full screen reddit presentation or slide show.

http://redditp.com

Hotkeys

  • a - toggles auto-next (play/pause)
  • t - collapse/uncollapse title
  • c - collapse/uncollapse controls
  • i - open image in a new tab
  • r - open comments in a new tab
  • u - open user slideshow in new tab
  • f - toggle full screen mode
  • m - toggle sound
  • Arrow keys, pgup/pgdown, spacebar change slides
  • Swipe gestures on phones

GET parameter

  • time - time used for auto-next
  • nsfw - en/disable nsfw content
  • auto - en/disable auto-next
  • sound - en/disable sound
  • menu - hide the menu
  • title - hide the title

Features

  • All /r/ subreddits, including different ?sort stuff.
  • /user/ , /domain/ , /me/ url's work.
  • Url's ending with ['.jpg', '.jpeg', '.gif', '.bmp', '.png']
  • You can save the html file locally and use it, just make sure you add a separator e.g. the question mark in file:///c/myredditp.html?/r/gifs so the browser knows to pick up the right file and go to the right subreddit.
  • Support for /r/random and /r/randnsfw virtual subreddits. These'll be tricky unless I cheat as they contain redirects.

Possible future features, depending on feedback:

  • Zoom/Pan for comics
  • Imgur albums support
  • Offline access support, though I don't know if this is even possible actually (caching external image resources).
  • Login and upvoting support

Host your own redditp

Redditp relies on the /r/subreddit in the URL to fetch the JSON from the corresponding reddit endpoint. There are a few ways you can set up support for these URLs yourself:

  • You can use an Apache server with the .htaccess file.
  • Host on Netlify using the _redirects file. This is the current host for redditp.
  • Use NodeJS (see package.json).
  • Use a simple HTTP server and put the subreddit URL in the get parameters like http://localhost?/r/subreddit.
  • Use GitHub pages by copying index.html into 404.html which will make all unknown URLs reach the same index.html. This currently only works with a custom domain because of where the .js and .css files are located.

Credits

About

Convert any reddit page to a presentation or slide show

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.5%
  • HTML 15.6%
  • CSS 4.9%