Coder Social home page Coder Social logo

booligoosh / simplereddit Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 0.0 36 KB

๐Ÿ™…โ€โ™‚๏ธ No distractions. No comments sections. No stylesheets. No JavaScript. An HTML-only Reddit client to stop you entering an internet time vortex. ๐ŸŒช๏ธ

Home Page: https://simplereddit.ethan.link

License: Creative Commons Zero v1.0 Universal

JavaScript 100.00%
reddit html-only cloudflare-workers alternative-frontends

simplereddit's Introduction

No distractions. No comments sections. No stylesheets. No JavaScript.

Just an HTML-only Reddit client to stop you entering an internet time vortex.

FAQs

Why did you make this?

I wanted a quick way to check Reddit, stay up-to-date and read interesting things without getting distracted.

If I intentionally want to go down a Reddit rabbithole, I'll browse it via Libreddit (which is still a lot better than the normal Reddit UI!)

Why is there no CSS or JavaScript?

Why should there be CSS or JavaScript? I think the site works just fine, and it's a bit of a proof to myself and others that you can make a perfectly functional and usable site using the powers of plain HTML alone.

Are you sure there's no CSS or JS? Not even a sneaky little style=""?

There's none! For proof, here's the site's Content-Security-Policy:

default-src 'none'; img-src https://simplereddit.ethan.link/favicon.ico

This means the allowed sources for scripts and styles is 'none', so even if there was any CSS or JS on the page (including via attributes), the browser would refuse to run it!

How/where does this run?

It's a single no-dependency JavaScript file intended to be deployed via Cloudflare Workers. It should be pretty easy port to any hosting/infrastructure though, as it's a single JS file that can be easily adapted.

Can I self-host this?

Sure! To host on your own Cloudflare account, just clone the repo, update the details in wrangler.toml, then run wrangler publish in your terminal.

If you want to self-host elsewhere, it shouldn't be too hard to adapt the JS file, the only things that will need changing is where handleRequest is called from, and possibly the method used to return HTTP responses.

Can I contribute?

Since it's a fairly small-scale project, I'm not sure how many things there are that need doing! But if you have any ideas or find any bugs, feel free to leave an issue or pull request.

If you enjoy SimpleReddit and want to leave a small tip, you can โ˜• buy me a coffee.

simplereddit's People

Contributors

booligoosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.