luin / readability

📚 Turn any web page into a clean view
2.49k stars 313 forks source link

How can I run the code on my iPhone under iOS? #81

Open John1843 opened 8 years ago

John1843 commented 8 years ago

Has anyone an idea of how to run this code on an iOS device?

mhamann commented 8 years ago

This is just Javascript, so you could technically run it in a UIWebView like this: http://stackoverflow.com/questions/8886443/calling-javascript-using-uiwebview

If you want to run it in the background, you'd need something like Apache Cordova, which would probably be something of a headache.

In any case, you'll need to compile this into a single JS file via something like browserify since this is designed to run on a platform supporting CommonJS (which web browsers do not).

John1843 commented 7 years ago

Thank you. I tried it but did not succeed. I created a question on StackOverflow with more details.