Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

reader view not available on various websites

  • 4 ответа
  • 1 имеет эту проблему
  • 225 просмотров
  • Последний ответ от cor-el

more options

Reader view not available on various websites, why?

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

Все ответы (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;
  }