Show HN: I made a modern web UI for Hacker News (modernhn.com)
Hey HN,
I made this free browser extension that modernizes the Hacker News design.
I previously launched Modern for Wikipedia [1] here back in December, and it seemed like the obvious next choice to build one for HN too! So I've taken what I learned from building that, and have spent all my spare time this year building Modern for HN.
I realize this won't be for everyone, but it was a fun project to work on, and I'm really happy with the result so far. Hope you like it too!
Lots more planned for future updates, and suggestions welcome :)
202 comments
[ 4.6 ms ] story [ 262 ms ] thread- It builds on the existing site, so the new design is always applied to HN urls. No need to visit a separate website.
- Privacy - everything is stored locally in your browser, there's no 3rd party website to track your activity etc. Also with JSON backup you're in full control of your data.
- Unlimited storage - local browser storage has limits, but extensions can request unlimited storage. This is useful for the history and bookmark features.
EDIT: I would expect a comment block to be before the "${count} Comments" tag.
Also no heavy frameworks used, just basic hand-coded JS + jquery + a few helper libraries (luxon for dates etc)
I also don't like having to hover to see the icons for reply. Why are you hiding the parent/context buttons for navigation in a dot-dot-dot menu when you drill into a comment chain? Where's prev/next? Upvote/Downvote/hover UI covers stuff, and no alt tags anywhere to be seen.
Also why does it need perms to firebase and extensionpay again?
It just feels clunky even as a redesign.
- Parent / context are in the menu just to keep the design clean. But I understand that's not what everyone wants, so I will add a setting to show these with the other icons, instead of in the menu.
- Prev / next are moved to the "control pad" (pro feature), but my intention is for the free version to support all current HN features, so I will add those back in the next update.
- The permission to firebase is to access the HN API [1] to grab user profile info etc. The other is for the pro upgrade using ExtPay [2]
[1] https://github.com/HackerNews/API
[2] https://github.com/glench/ExtPay
great design, Im keeping it enabled for testing
What for ?????????
Seriously : I can't understand... and I surely WONT install this because I cant ANY REASON. Really disapointed :-(
[1] https://github.com/glench/ExtPay
[2] https://news.ycombinator.com/user?id=glench
> This extension is not trusted by Enhanced Safe Browsing. Learn more[1]
[1]: https://support.google.com/chrome_webstore/answer/2664769?vi...
> For new developers, it will take at least a few months of respecting these conditions to qualify.
Modern for Wikipedia [2] already meets those standards, and has the relevant badges, so I guess it'll just take some time for those to be approved and for the "Enhanced Safe Browsing" warning to be removed.
[1] https://developer.chrome.com/docs/webstore/discovery/#publis...
[2] https://chrome.google.com/webstore/detail/modern-for-wikiped...
Only at that zoom level would the page span the entire width of the screen and wrap the text around.
Firefox on iPhone/iOS can't zoom text (a long time open request.) Therefor it's impossible to this website with it. Kind of ridiculous.
Is it really so hard to create a proper default layout? Text size seems so basic...
This is how markdown works, so it feels natural to me (although then the differences from markdown become apparent...)
Just tried 100% out of curiosity and you're right, it's ridiculous.
But I guess to each their own. +1 for loving simplicity of current design though.
TF with your agressivity
Nothing is more repulsive than a tag line on a product that says “New and improved modern look!”
The UI is optional. It is literally an extension you can install separately. Nobody is taking anything from you.
There is a place to criticise bloated and Ad-ridden web pages. This extension is not it.
But this is the good thing about it, people can extend it as they wish.
There used to be (and still are) things like https://mreidsma.github.io/bookmarklets/jquerify.html which allow to inject JavaScript on click (and thus would make it possible to transform that site), but I gave it a shot and HN is set up to disallow this:
> that way I don't have to bloat the browser's start-up time and don't have to "worry" about this extension spying on other websites, even though I realize it's unlikely
No need to worry about that, as it's limited by the permissions specified in the extension manifiest. So this extension can only access news.ycombinator.com and extensionpay.com to facilitate the Pro upgrade.
[1] https://news.ycombinator.com/item?id=32769145
Well consider that when you go to a proxied version of HN, you're essentially giving an opaque server "permission" to view all your traffic it sends to HackerNews... but you can't verify what it's doing with that
At least this extension states exactly what permissions it needs, and I can inspect it and see what it's doing...
That's about my only complaint.
Oh, and way bigger links for my big thumbs
On desktop, HN is the only website that I have "zoomed". 120%, btw.
So often a zoom will break complicated UI layouts and their JS interactions, so I appreciate the simplicity of this site allowing my user agent to customise my experience and still have it work.
You would think that but no. The HTML is so full of tables everywhere that it's not that easy to do anything creative with it. I'm pretty sure that's why some features such as collapsing comments took so long to be implemented (and not because "not collapsing forces you to read")
I just want all comments to load on page load so I can search easily.
I agree that it's annoying and it will be a happy day when we can turn it off properly.
Great job. Already using and enjoying this. Keep up the great work.
For reference, in the Pro version you can set the storage for your favorites to private (local browser storage) or public (HN profile). It's currently set to private storage for free users, but should be set to public (to save to your HN profile).
I've been thinking about creating this + adding https://github.com/mozilla/readability to grab the links that are text articles and present them in-page (and cleaned up, just the text+images+similar, removing all the sidebars, popups, etc) instead of having to go to a 3rd party website with all the popups and such.
It'd have to be either a personal website or a browser extension like yours, since I wouldn't be able to host a given article for anyone to read (for copyright reasons), but I can have a modified browser that loads a 3rd party article different.
Maybe there's a better way someone knows for extensions to grab remote html without running into these problems?
The alternative would be for the extension to grab the html via API from a crawler running on a server (or SaaS), which should work pretty well.
> The alternative would be for the extension to grab the html via API from a crawler running on a server
Oh like 'https://myplainwebsite.com/parse?url=https://example.com/doc...'
https://content-parser.com/
You can parse any URL into markdown with `https://content-parser.com/markdown?url={encodeURIComponent(...}`.
I used to use HN-Special[1] (by the same dev who made that 2048 game[2]) but I stopped a while ago and I don't miss it. I like HN as is (for now), but I do have it at 150% zoom using the native browser built in zoom, which works great for my needs.
The one thing I really really want is the equivalent of the "[l+c]" button from Reddit Enhanced Suite. In one click you open both the comments and the submission (if it's just a text one) in new tabs.
1. https://gabrielecirulli.github.io/hn-special/
2. https://github.com/gabrielecirulli/2048