如何从我的网站禁用firefox的读者视图? [英] How to disable firefox's reader view from my website?

查看:84
本文介绍了如何从我的网站禁用firefox的读者视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天,我将Firefox更新为最新版本,其中一个重要功能是桌面阅读器视图.两周前,我们开设了一个网上商店,现在有一个很小的读者视图"图标.当我单击它时,我收到一条错误消息.我的团队负责人希望我在访问此网站时删除此功能.

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.

是否可以在访问我的网站时从firefox中删除或隐藏阅读器视图"功能?

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

推荐答案

目前尚无合法方法为您的网站禁用Reader View. Reader View应该能够自动检测哪些页面应该可用,哪些页面不应该可用.

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.

如果您的网站有问题,最好的选择是在该网站上报告: https://github.com/mozilla/readability/issues

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

您还可以在此处找到有关影响Firefox中的Reader View的问题的更多信息: https://wiki. mozilla.org/QA/Reader_view

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

尽管我不建议这样做,但如果确实需要,可能有一种方法可以使Reader View误认为它不应解析您的网站.快速查看源代码会发现它不会解析某些类型的文档,某些URI和格式错误的URL.您需要深入研究源代码,以了解如何/是否可以安全地调整您的站点以避免被解析.可在此处找到Reader View的源代码: https://mxr.mozilla.org/mozilla-release/source/toolkit/components/reader/ReaderMode.jsm https://dxr.mozilla.org/mozilla-release /source/toolkit/components/reader/ReaderMode.jsm

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

这篇关于如何从我的网站禁用firefox的读者视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆