How is 'reader mode' in Firefox triggered?

Édouard Lopez picture Édouard Lopez · Mar 4, 2013 · Viewed 7.3k times · Source

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 ?

Answer

Mark Finkle picture Mark Finkle · Mar 5, 2013

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