theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.17k stars 2.05k forks source link

Support reading view functionality of edge broswer #737

Closed cmpute closed 4 years ago

cmpute commented 5 years ago

I agree and want to create new issue


Expected behavior

If implemented correctly, I think the reading button on the right side of the address bar of edge will be lighted. And one can enter reading view and concentrate on the content in this mode.

image

Actual behavior

Currently all pages in my blog don't support reading view. You will find the reading button in gray status.

Steps to reproduce the behavior

  1. Open any supported page (e.g. the link below)
  2. Click the reading button in the edge browser
  3. You've entered the reading mode

image

NexT Scheme:

1v9 commented 5 years ago

Not sure the upcoming new chromium-based EDGE browser will still retain reading view or not, so we may have to wait?🤷‍♂️

stevenjoezhang commented 5 years ago

macOS & iOS safari have similar feature (reading view functionality), but I have no idea how it works...

And I found that it works on Safari.

About Safari: https://mathiasbynens.be/notes/safari-reader

https://medium.com/@mandy.michael/building-websites-for-safari-reader-mode-and-other-reading-apps-1562913c86c9

cmpute commented 5 years ago

Not sure the upcoming new chromium-based EDGE browser will still retain reading view or not, so we may have to wait?🤷‍♂️

I guess the old version of edge will remain preinstalled in windows

stevenjoezhang commented 4 years ago

https://docs.microsoft.com/zh-cn/microsoft-edge/dev-guide/browser-features/reading-view

https://www.theverge.com/2019/11/4/20942038/microsoft-edge-chromium-release-date-new-logo-features

Dev guide - Reading view - Microsoft Edge Development
See how Microsoft Edge provides a reading view for webpages to enable add-free reading.
The Verge
Microsoft’s Edge Chromium browser will launch on January 15th with a new logo
A release candidate is available to download today.
stevenjoezhang commented 4 years ago

I downloaded the new chromium edge and enabled the reading view based on this post: https://www.howtoedge.com/enable-reader-view-on-chromium-edge-browser/ Then, I opened http://hexo-theme-next.netlify.com/ and found that the reading view worked like a charm. I believe that Microsoft has adjusted the algorithm of the reading view, so we will not continue to consider adapting to the old edge browser.

Howtoedge
How to enable reader view on Chromium Edge Browser - Howtoedge
Here, we explain simple workaround to enable reader view on Chromium Edge Browser i.e. go to edge://flags then Reading view flag & select Enabled option.
NexT
NexT
cmpute commented 4 years ago

I downloaded the new chromium edge and enabled the reading view based on this post: https://www.howtoedge.com/enable-reader-view-on-chromium-edge-browser/ Then, I opened http://hexo-theme-next.netlify.com/ and found that the reading view worked like a charm. I believe that Microsoft has adjusted the algorithm of the reading view, so we will not continue to consider adapting to the old edge browser.

HowtoedgeHow to enable reader view on Chromium Edge Browser - HowtoedgeHere, we explain simple workaround to enable reader view on Chromium Edge Browser i.e. go to edge://flags then Reading view flag & select Enabled option.

NexTNexT

Which version of chromium edge you are using? I enabled reading view but still cannot enable the reading view on hexo-theme-next.netlify.com My version is Version 81.0.394.0 Canary

Howtoedge
How to enable reader view on Chromium Edge Browser - Howtoedge
Here, we explain simple workaround to enable reader view on Chromium Edge Browser i.e. go to edge://flags then Reading view flag & select Enabled option.
NexT
NexT
cmpute commented 4 years ago

Can you try this page in my blog? https://zyxin.xyz/blog/2019-03/StochasticSystemNotes/

Jacob Zhong
Notes for Stochastic System
Combined notes for part of EECS 501 & MECHENG 549. Prerequisites: Knowledge of Elementary Calculus, Linear Algebra and ProbabilityDiscrete-Time Stochastic SystemStochastic SequencesDefinition: Giv
stevenjoezhang commented 4 years ago

The link you provided cannot enable Reading View. This is not difficult to understand, because there are a large number of unrendered mathjax on the page.

批注 2020-01-16 120104

The other pages are perfectly fine.

批注 2020-01-16 120105

I used three different versions and they all worked fine: 79.0.309.65 (官方内部版本), 80.0.361.32 (官方内部版本) beta and 81.0.394.0 (官方内部版本) canary. They are downloaded from Microsoft's official website:

https://www.microsoft.com/en-us/edge https://www.microsoftedgeinsider.com/zh-cn/download

Download New Microsoft Edge Browser | Microsoft
See what's new on the latest version of the Microsoft Edge browser. Explore features, rewards, and more before you download the new browser today.
下载 Microsoft Edge Insider Channels