Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is 'reader mode' in Firefox triggered?

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 ?

like image 520
Édouard Lopez Avatar asked Mar 04 '13 16:03

Édouard Lopez


People also ask

How does reader mode work?

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).

How do I force reader view in Firefox?

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.

What is reader mode in browser?

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.

How do I customize the reader view in Firefox?

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.


2 Answers

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

like image 66
Mark Finkle Avatar answered Oct 25 '22 08:10

Mark Finkle


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).

like image 41
Édouard Lopez Avatar answered Oct 25 '22 08:10

Édouard Lopez