Pocket (offline reader) support

(Erlend Sogge Heggen) #1

Note: This is more of an observation than a request.

I prefer to do long-form reading on my tablet, and today I actually encountered a post that met this criteria. I decided to see what “add to pocket” would do.

It appears when Pocket encounters pages that it doesn’t recognise as an article, it simply stores the entire page offline. In Discourse’s case, that means the no-JS version, and any pages you haven’t loaded in will not be included, so I only got the #15-#34 range for instance, which makes sense.

Worked quite nicely actually, except the width is a bit off. I’ve sent them an e-mail to see if they’re interested in lending a hand for better compatibility.

Offcourse - a proof of concept offline reader for discourse
Printer Friendly CSS
Offcourse - a proof of concept offline reader for discourse
(Caue Rego) #2

On my brief test, it simply didn’t work. At least with the pocket mac client. I also tried adding .rss and .json to it, but oddly pocket didn’t like them as well. It would have been nice!

I could find no way around it. Even offcourse doesn’t seem to work. Pocket is tough! :frowning:

This would be a great use for the renegated print feature.

Format for hard copy or PDF printing
(Erlend Sogge Heggen) #3

Send them an e-mail asking to make Pocket compatible with Discourse. There should be many avenues they could explore, like using the Discourse API, or scraping the no-JS version.

(Jeff Atwood) #4

If we recognize Pocket’s user-agent, we could add it to the web crawler list – then it would get 1996 paginated content, at least, the same kind we serve to Google’s crawlers.