Search Support

Beware of phishing attacks: Mozilla will never ask you to call a number or visit a non-Mozilla website. Please ignore such requests.

Learn More

reader view not available on various websites

  • 4 απαντήσεις
  • 1 έχει αυτό το πρόβλημα
  • 181 προβολές
  • Τελευταία απάντηση από cor-el

more options

Reader view not available on various websites, why?

Επιλεγμένη λύση

Hi sbray1834, the Reader view is limited in the kinds of pages it understands. It scans the HTML code of the page looking for certain structures similar to articles or blog posts. It has a plan for how to simplify those. But if it doesn't find the kinds of page structures it is designed to handle, it just gives up.

Ανάγνωση απάντησης σε πλαίσιο 👍 1

All Replies (4)

more options

Επιλεγμένη λύση

Hi sbray1834, the Reader view is limited in the kinds of pages it understands. It scans the HTML code of the page looking for certain structures similar to articles or blog posts. It has a plan for how to simplify those. But if it doesn't find the kinds of page structures it is designed to handle, it just gives up.

more options
more options

Hi. Is there a way to bypass/fool this check? Because, the reader view don't allow to be used when pages are loaded offline.

more options

Hi asdgz

That is not possible.

  • resource://gre/modules/AboutReader.jsm
var AboutReader = function(mm, win, articlePromise) {
  let url = this._getOriginalUrl(win);
  if (!(url.startsWith("http://") || url.startsWith("https://"))) {
    let errorMsg =
      "Only http:// and https:// URLs can be loaded in about:reader.";
    if (Services.prefs.getBoolPref("reader.errors.includeURLs")) {
      errorMsg += " Tried to load: " + url + ".";
    }
    Cu.reportError(errorMsg);
    win.location.href = "about:blank";
    return;
  }