Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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" icon. When i click on it i get an error-message. My team-leader wants me to remove this feature when visiting this site.

is it possible to remove or hide the "reader view" feature from firefox when visiting my site?

like image 694
moeses Avatar asked Dec 24 '22 18:12

moeses


1 Answers

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

like image 166
guiweb Avatar answered Dec 30 '22 12:12

guiweb