iOS access to Safari Reader feature through UIWebView

前端 未结 6 706
梦如初夏
梦如初夏 2020-12-23 18:19

I am using iOS 4.3 & was wondering if there is any way that I can access the Safari\'s \"Reader\" feature through which webpages are removed of ads & other riff raff

6条回答
  •  盖世英雄少女心
    2020-12-23 18:40

    Important: THIS ANSWER NO LONGER WORKS!

    Readability shut down on September 30, 2016.

    Here is something they recommend as a replacement: https://mercury.postlight.com/web-parser/

    Keeping the answer as a historical reference

    --- Original answer ---

    You can use Readability mobilizer for this. You will get a cleaned up version of any article, in the Readability styling:

    http://www.readability.com/m?url=http://{URLOFTHEARTICLE}
    

    Just prepare the URL and load it in your UIWebView. Here is how it looks in action:

    http://www.readability.com/m?url=http%3A%2F%2Fwww.cnn.com%2F2013%2F01%2F11%2Fshowbiz%2Ftv%2Fgolden-globes-tv-vineyard%2Findex.html%3Fhpt%3Dhp_abar

提交回复
热议问题