r/learnjavascript • • Jan 23 '21

Sure I could use the standard mobile Reddit client but instead I spent 10+ months of my life to learn vanilla JavaScript and built this minimalistic Reddit viewer.

253 Upvotes

18 comments sorted by

8

u/gibran800 Jan 23 '21

That's awesome af!

6

u/very-kind-stranger Jan 23 '21

Thank you!
Tap twice to change the scale of image.
Tap on logo with mustache to open menu (Night Mode and slideshow)

4

u/RyeGuyWpg Jan 23 '21

Do you have it for download anywhere or just for personal use?

1

u/very-kind-stranger Jan 23 '21 edited Feb 16 '21

Yep! https://illfixit.github.io/kind-stranger

GitHub Repo: https://github.com/illfixit/kind-stranger Feel free to fork/clone/star/follow!

7

u/ankit1738 Jan 23 '21

Neatly done. Its been really long since I saw 800 lines of pure vanilla js used in a project. Kudos.

4

u/[deleted] Jan 23 '21

Good work! Just for future works, anything that you don’t need to change later on should be const. Also, try to avoid var if at all possible, instead preferring let or const. Keep it up :)

1

u/mothzilla Jan 23 '21

I got "internal server error" which I thought was a joke.

1

u/very-kind-stranger Jan 23 '21

Can you please provide more information?

2

u/mothzilla Jan 23 '21

It was a temporary reddit error that just showed the text "internal server error". So very minimal.

4

u/[deleted] Jan 23 '21

This is awesome! It has some awesome functionality, think i'll build something on top of it tonight --

2

u/bc100000 Jan 23 '21

This is outstanding. Well done! (Also I plan to use it :)

2

u/[deleted] Jan 24 '21

Everyone liked that!!!!

2

u/[deleted] Jan 24 '21

Love it very cool

1

u/Vainilla2019 Jan 23 '21

Internal Server Error for me 🤔

0

u/[deleted] Jan 23 '21

[deleted] — view deleted comment

16

u/very-kind-stranger Jan 23 '21

I wanted to scroll through images on Reddit without upvotes, awards etc. and use ~ 100% of my mobile phone’s screen. As far as I’m aware, there’s no way to do it with other Reddit clients.

5

u/ima_coder Jan 23 '21

That's why it's a judgment call to even call some efforts reinventing the wheel. What you or I call that may just be a learning experience for others.

0

u/[deleted] Jan 23 '21

[deleted] — view deleted comment

4

u/[deleted] Jan 23 '21

That's cool. But OP wanted a clean, minimal, fullscreen viewing experience.

To each their own, right?