views:

85

answers:

2

Safari 5 has gotten a new feature: The Reader. It shows a simplified version of an article page with just the article itself (and not all the clutter around). It also merges multiple pages (if the article is split across multiple pages) to a single one.

This is an extremely useful feature and I would like to port it over to Chrome.

I was searching for Readers code in the WebKit trunk (e.g. http://svn.webkit.org/repository/webkit/trunk/) but I couldn't find it.

Any hint where I can find it?

+2  A: 

UI-level features are generally part of the Safari codebase, which as Ivo said is not open-source. The WebKit nightly builds aren't open-source either, they are essentially versions of Safari that use an embedded, trunk copy of the engine instead of the one that shipped with the OS.

smorgan
Ah, thank you for clarifying this out.
Albert
+4  A: 

Safari Reader borrows from the Readability project, according to an article in the register. Readability implements a similar user experience, but does so in a cross browser fashion (using bookmarklets)

The project site is probably a good place to start:

http://code.google.com/p/arc90labs-readability/

I hope this helps!

BTW - I had links to several sites, including the demo site, the original artcile in the register, but stackoverflow won't let n00bs post more than one link. I will edit to add those once I have some rep!

Larry Clarkin
Have read already that it is based on this. Although Safaris Reader seems to be a bit extended (like converting multiple pages into a single one -- I think Readability can not do this). But good to have this link here, thanks!
Albert
Is there a version of Readability that is not dependent on WebKit? It seems that WebKit (on Mac OS X) insists on being run in the main thread, thus cannot be used for heavy HTML parsing in the background.
adib