Hacker News new | past | comments | ask | show | jobs | submit login

Is it something the site has to offer? I thought it was just something the browser was doing on its own, for any page meeting some (undocumented?) criteria.



You're correct, the browser extracts and reformats the content. Firefox only shows the Reader View icon for pages where it thinks it can do a good job of that.


I find myself wondering if it relies on the "for printing" reformating of various sites. This because i was browsing one site i could have sworn had the icon earlier using desktop Firefox, but it didn't show up. That is until i enable the JS of s third party printing framework in Noscript. After that it showed up.


It's using this code:

https://github.com/mozilla/readability/blob/master/Readabili...

which is a descendant of the original Readability.js published by Arc90, before they decided to turn it into a proprietary Instapaper clone.

It extracts what looks like article text from the page markup. DOM elements included for a printer-friendly view could possibly be helping, but it doesn't target that directly.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: