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

后端 未结 3 1139
离开以前
离开以前 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

相关标签:
3条回答
  • 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)
  • 2021-02-11 03:20

    This Question shows how to Optimize website to show reader view in Firefox. So you have to ensure that your site is not optimized for the Reader View.

    Don't use formatting options that are favoured for the Reader View and so on.

    I guess this will suffice:

    • Don't use the <p> Tag
    • write all Textblocks in small portions

    Here are some more details about the mechanism

    0 讨论(0)
  • 2021-02-11 03:25

    There is no way of forcing disabling the Reader View to the user, But if it is important to your site, you can notify the user to disable or not use the reader feature of firefox.

    This would be the way to Disable the Reader on the users browser

    • in the Enter about:config in browser address bar
    • click the "I'll be careful I promise" box
    • search for reader.parse-on-load.enabled
    • toggle preference to false (right click > toggle to false )
    • close the about:config page > refresh browser > reader view icon has gone
    0 讨论(0)
提交回复
热议问题