如何将 Amazon Kindle Web 浏览器置于文章模式
如何通过 HTML 或 Javascript 将 Amazon Kindle 网络浏览器设置为文章模式?
编者注:某些页面不会被 Kindle 3 浏览器自动检测为“文章”,并且在尝试进入文章模式时会给出错误消息。文章模式使用什么来确定要显示页面的哪一部分?
How do you put the Amazon Kindle web browser into Article Mode via HTML or Javascript?
Editor's note: Some pages are not automatically detected as "articles" by the Kindle 3 browser, and give an error message when trying to go into Article mode. What does the Article mode use to determine what portion of the page to display?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这与可读性有关系吗?
http://lifehacker.com/5163401/readability- bookmarklet-quick+formats-pages-for-smoother-text
实际 JavaScript 代码的可读性,是基于启发式的:
这似乎也与 Safari 5 的阅读器模式。以下是 Safari 阅读器所需的内容:
Is this related at all to Readability?
http://lifehacker.com/5163401/readability-bookmarklet-quick+formats-pages-for-smoother-text
Actual JavaScript code for Readability, which is heuristic based:
This also appears to be related to Safari 5's Reader mode. Here is what is required for Safari Reader:
http://www. wired.com/gadgetlab/2010/09/simple-tip-turns-kindle-into-ultimate-news-reader/ - 上面概述的“f”键功能或其他功能?不太清楚文章模式是什么意思。
http://www.wired.com/gadgetlab/2010/09/simple-tip-turns-kindle-into-ultimate-news-reader/ - The "f" key feature outlined above or some other feature? Not quite sure what article mode means.
这意味着浏览器将尝试识别您正在查看的页面是否有文本主体(是一篇文章),将其解析出来,然后仅显示该文本,而不混乱且易于滚动。
我不认为你可以通过网页的代码强制它
It means that the browser will try to identify if the page you are looking at has a main body of text (is an article), parse it out and then display only that text without clutter and for easy scrolling.
I don't think you can force it via the web page's code
据我所知,一旦网站加载(并且如果您正在讨论特定主题),您可以从菜单中打开“文章模式”。
我也见过类似的 Chrome JS 工具,所以我认为它是 webkit 的一部分。
As far as I know, once the website has loaded (and if you are on an specific topic) you can turn on the "Article Mode" from the menu.
I've seen similar JS tools for Chrome too, so I assume it's part of webkit.