153 points · by hnux · 3y ago · 84 comments
This is a browser extension that attempts to enhance Hacker News user experience, while your data is kept secure, and private (never leaves the browser).
Browsers have evolved significantly since doing a v1 back in 2010, which was one of the contributing factors, for attempting a complete re-take few months ago.
Personally, I was surprised how useful it turned out to be when browsing around HN.
On the linked page you can find install link(s) from web-browser stores, and demo video/screenshots of the features[1]
What do you think ?
[1] including, browsing content with multiple columns, infinite scroll for lists, user profile tooltips, dynamic comment reply, dark-mode, ...
I'll keep using it for a bit to give it a fair shot however since I can imagine the split pane being super useful in certain cases.
The only issue is the font, really. I use the stylus extension to change it to:
* { font-family: Open sans; }
And _now_ it's perfect. For desktop at least.
It's a bug, that missed my test somehow.
Will fix.
I think you'd like "Refined Hacker News". It provides thoughtful, convenient enhancements but doesn't change the core HN experience.
You'll need this PR to use it without errors: https://github.com/plibither8/refined-hacker-news/pull/125
¹ https://chrome.google.com/webstore/detail/refined-hacker-new...
Why are the last reviews from 2012 to 2014?
I'm asking, because people posting tools here usually have a link to a GitHub profile and I can't find any information on who created this extension. Something like https://chrome.google.com/webstore/detail/georgify-plus/epgj...
Other than that, thanks for this tool. Apparently it only requests access to HN, so it should be safe.
The extension adheres to the best practices, and like you said requests only access to HN. Manifest v3 is designed such that should an extension change its permission requirements, it must engage the user to decide, thereby being obvious.
> I see no information about a privacy policy
Sorry for that. I can post one in the next weeks.
> Why are the last reviews from 2012 to 2014?
The comments are from v1 which was released back in 2010. Although it continue to worked, v1 was practically out-dated and probably didn't encourage anyone to comment.
v2 was released in February 2023.
It’s also using manifest v3 if that’s a selling point, and has light and dark modes.
https://chrome.google.com/webstore/detail/georgify-plus/epgj...
Without the extension i can see 26-27 feed articles and with it is just 7-8, I think you still make it show the original 22-23 as HN leaves a lot of spaces on the sides.
edit: Here are some imgs to show https://imgur.com/a/WddNttU. As you can see original HN leave enough space for your new features without any need to rescale things
@-moz-document url-prefix(https://news.ycombinator.com) {
body {
background-color: #d4d4cb;
margin-top: 0;
}
#hnmain {
max-width: 960px;
}
.title {
font-size: 1.5rem !important;
}
body, td, input, textarea,
.default, .admin, .subtext, .yclinks, .pagetop, .comment, .hnname {
font-size: 1rem !important;
}
.comhead {
font-size: 0.8rem !important;
}
}
Using rem units means it respects the font size defined in my Firefox configuration. The rest is mostly about avoiding ultra wide content.Thanks for trying it out.
I can certainly provide font-size customisation in-app, but for now one could adapt the font-size in their liking with browser's zoom capability (ctrl+ or ctrl - key combination).
Also, have you thought of supporting the custom hn top bar color? I think you get that setting after some karma and ppl change it, for me is not a big deal but it may be something people want to keep.
I understand. It's just a workaround for now.
> have you thought of supporting the custom hn top bar color?
Thanks. I will add support for it in the next update.
then somehow we arrived at pulsating placeholder bars for 40-byte `text/plain` XHRs & hamburger menus & “i resized my browser to half screen width and now the website treats me like an ipad”
thanks for the taste of yesteryear; it was very sweet
>Hacker News UX is an early adopter of Manifest V3 which imposes stricter security to extensions.
I have to comment on that, as the Google line on MV3 being about security irks me a bit. In this case, the extensions loads for all urls with news.ycombinator.com/* and injects it's own build.js content script. It doesn't appear to do anything terrible, but it could if it wanted. It could keylog, exfiltrate data, steal your password, make HN posts on your behalf in the background, etc. Manifest V3 does nothing to police content scripts. Largely because many extensions need those kind of permissions to do anything useful.
If one would try to request to a non white-listed domain it would trigger Access-Control-Allow-Origin error.
Also I think v3 makes it quite hard to use remote loaded code.
Any attempt to be malicious would probably be caught by store's review process eventually.
1. https://developer.chrome.com/docs/extensions/mv3/intro/mv3-o...
Can I ask what specifically was hard to parse ?
I can also provide preferences for any recommendations you may have, that can benefit one. Will add the font-size change for example, as commented elsewhere.
Also, dark mode is more suitable for low light conditions, and does make reading much easier.
I think my main issue was font size and lack of whitespace. I'm typically reading 10-12pt fonts in docs, code, and body content on web pages. HN by default is close to that. I think I'm therefore used to that and find it the easiest size to scan content in – I'm not reading every word I'm skimming through quickly a lot of the time.
That's also where whitespace can help. When skimming I found the page to be a mess of text with little separation. More whitespace, more contrast between different types of text, etc, could do a lot to make the page more easily readable.
One thing that I do find annoying with HN is the long text lines. I'd love to be able to wrap paragraphs at a relatively small width – this typically aids reading and comprehension, and it's why most publishing websites limit content width even on wide monitors. This could also be related to the layout issues I have with this extension – My browser window is currently ~2000x1900px, and it seems the content expands continually with no limit. Maybe there could be a limit to aid readability?
I find content much harder to read in dark mode and don't use it. It strains my eyes with the contrast and I find it harder to focus. I appreciate some people like it but I think it's a personal thing and important to have both options.
The extension uses HN's default font 'Verdana', which is in sans-serif family, and that font is probably not available on your Ubuntu machine ?
Off the bat, I like the two column view with infinite scroll. I also like the bigger text size, although it could be just a tad smaller.
My only real complaint is I no longer have my custom header color -- I liked the splash of color it added!
* Limit the display length of individual text groups to be 60-80 characters.
Everything else is grand.
1. A singular comment
2. For a text submission such as Ask HN, the post contents
A general readability recommendation is to limit your line lengths to be around 45-80 (e.g. [1]).
For websites that just have a singular main body of text (e.g. blog posts, articles), this is easy to do with css rules.
The text on HN comments page is of a bit different nature. Each child comment cascades, there's an indent. So to apply the typography rule of "not too many characters in a line, one would have to apply the css rules per text group*. Effectively a child comment is still getting wrapped with the same column width, not lower.
Although not hard limit, if you open HN with the extension on, you can then adapt the window size, and the content width will be around that limit;
That's how I do it for now.
Play Store: https://play.google.com/store/apps/details?id=com.pranapps.h...
I went a step further and made my own client[0] so that it’s easier to navigate on larger screens and mobile, but could not find a good solution to support logging in. An extension is a great middle ground.
Is this technically possible? If so, I might go ahead and code this myself ^^
1. when I click on comments, it takes time to load the content on the right side 2. I feel like there is a lot of information at the same time in front of me
I find HN design really simple and good IMO
thing is I get a few page scrolls down into threaded comments and find that I am not going to read all the back and forth holy war on one particular nit.. but I want to scroll rest of page to see if other topics are brought up - but it's easy to get lost on the up and down scroll and just give up trying to sort where the forks in the road went off the rails.
Maybe this or something else mentioned here does this - not sure.
One suggestion - can you make it so the splitter bar allows resizing from the right or left?
You must hover over your username, or login, link, in the bottom-left corner, and a pop-up window should appear with the option to switch to dark-mode.
> can you make it so the splitter bar allows resizing from the right or left?
Thanks. Can do.
It seems to be fairly straightforward, assuming the creator is interested: https://developer.apple.com/documentation/safariservices/saf...
I will look into it when I could add support for it sometime in June. It should be possible to run without difficulties, as also noted by CharlesW.
I submitted the extension to Firefox Add Ons store. Will post when it becomes available.