by Retr0spectrum · 10y ago · 0 comments
document.body.style.maxWidth = "768px";
document.body.style.margin = "auto";
document.body.style.fontSize = "20px"What I like about sites like this, is that I can adjust them to my needs using a tool I have full control over. The browser allows me to:
* Adjust window size or detach tab and resize
* Use zoom judiciously
* Use my preferred browser reading font
Sure, it may not be beautiful, but is surely is functional. I'll also leave this here: http://motherfuckingwebsite.com/
And it's fine, as long they scale properly and allow narrow browser views. The only criminals are the ones that force wide paragraphs... sometimes to a point I have to vertically scroll a paragraph.
It's also worth noting that Firefox's "reader" mode works perfectly with this site.
(I'm sure there's a million add-ons for this... But these days I try hard to avoid customizing my setup, because so often I have to use another computer anyway. Learning to live with defaults makes life so much easier in the long run.)
Readability view has options for font size, font-style (serif vs sans-serif) and off-white / sepia / dark modes.
Edit: It seems to even have new controls for adjusting column width and line-heights.
Chrome has distill mode, start chrome with "--enable-dom-distiller" option. https://github.com/chromium/dom-distiller
I think there's similar options in IE, but can't remember its name.
The browser will remember this preference for his site, as well. No plugins needed.
javascript:(function() { document.body.style.maxWidth='700px'; document.body.style.margin='0 auto'; document.body.style.lineHeight='1.5'; document.body.style.fontSize='20px';} )();
I call it StyleLet :). document.body.style.fontFamily = 'Georgia';
document.body.style.lineHeight = '1.62em';
document.body.style.margin = 'auto';
Then I zoom to get the font size I need.Why not just resize your browser window?
I apply similar, but relative styles to pages for readability: https://news.ycombinator.com/item?id=12479901
I'm not really complaining, I just wanted to point out how little styling was needed to massively improve readability.
Windows 10, which I use in work, has this annoying habit that if I maximize browser for a webapp that requires (benefits from) more screen estate, it doesn't always restore to the earlier size correctly. But it's something I can live with.
HN specifically, if I have serious reading to do in the comment section, I might narrow my browser down to 600px for even better readibility.
There were a few years that I configured my work machine to have dual monitors in portrait mode. That helped my feeling of constriction, while giving shorter lines of text. As a bonus, it matched pretty closely to the 1280 width (at 1200 pixels), and often allowed more of the text to be shown at once.