How to disable firefox's reader view from my website?

后端 未结 1 1762
别跟我提以往
别跟我提以往 2021-02-11 02:27

Today i updated my firefox to the latest version and one big feature is the reader view for desktop. We launched a webshop two weeks ago and now there is this tiny \"reader view

相关标签:
1条回答
  • 2021-02-11 03:08

    There is currently no legit way of disabling Reader View for your website. Reader View is supposed to automatically detect on what pages it should be available and on what pages it should not.

    If there is an issue with your website, your best option is probably to report it there: https://github.com/mozilla/readability/issues

    You can also find more info about the issues affecting Reader View in Firefox there: https://wiki.mozilla.org/QA/Reader_view

    Although I would not recommend it, there might be a way to fool Reader View into thinking it should not parse your website, if you really need to. A quick look at the source code reveals that it will not parse certain type of documents, certain URIs and malformed URLs. You would need to dig in the source to understand how/if your site can safely be adapted to avoid being parsed. The Reader View source code can be found here: https://mxr.mozilla.org/mozilla-release/source/toolkit/components/reader/ReaderMode.jsm or https://dxr.mozilla.org/mozilla-release/source/toolkit/components/reader/ReaderMode.jsm

    0 讨论(0)
提交回复
热议问题