I'm using Firefox Mobile on an Android device and I'm fond of the 'Reader mode' features. However, the feature is not always available (e.g. Bash Guide). So I'm looking for information on the mechanism of this feature, because it's still unpredictable.
Does it look for some semantic, @ids/@class values or something else ?
Most web browsers have a “reader mode" that strips away non-essential content, providing a simpler text-based presentation. Toggling reader mode typically removes ads, formatting, and other distracting elements, leaving behind the text (and in most cases, images).
Microsoft Edge, Firefox, and Vivaldi: At the right side of the address bar, click the reader mode or immersive reader icon, which will look like a book or words on a page. You can also press F9 in the desktop version of Edge or Firefox.
Reader mode is a feature some browsers incorporate that simplifies open pages by removing their ads, navigation panels, videos, and buttons. That feature enhances the readability of pages' essential content.
2022 (in Firefox 100): In the URL bar, enter: about:config . Click on Accept Risks and continue button. In the search field, type reader This lists out all the parameters that can be configured including font type, content width, background color etc.
Firefox on Android uses readability.js as the basis for its "Reader Mode" support. Here is a content guide for making pages that are easy to extract content: http://www.readability.com/developers/guidelines
The original readability code used in Firefox comes from: http://code.google.com/p/arc90labs-readability/
Note that not all pages can be converted into Reader Mode, in fact, that's not the intention. If you come across a page that you think should be handled by Reader Mode, please file an issue in the github issue tracker:
https://github.com/mozilla/readability/issues
The developer of this features just reply via Twitter :
@edouard_lopez No docs, sorry. It finds for the main content of the page based on a number of things (tag name, classes, id, etc).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With