webOS Nation Forums >  Homebrew >  webOS patches > [Patch] [Touchpad] [Browser] Readability Button
[Patch] [Touchpad] [Browser] Readability Button

  Reply
Like Tree3Likes

 
LinkBack Thread Tools Display Modes
Old 11/16/2011, 04:01 PM   #1 (permalink)
Member
 
Join Date: Nov 2011
Posts: 26
Likes Received: 5
Thanks: 1
Thanked 5 Times in 2 Posts
Default [Patch] [Touchpad] [Browser] Readability Button

Inspired by today's announcement by Readability, I dug a little (still only a little) deeper and introduced the Touchpad Browser to the Readability API. Since I use it rather often, I decided to give it its own button in the toolbar. When the button is pressed, the current page is submitted to the Readability API and displayed in the browser.

I hate to be a tease but I haven't finished packing up the patch yet, mostly because I still need to find out how to introduce new files and not just modify existing ones. However, here's a preview of how it actually looks and works. The actual patch will follow ASAP.

UPDATE 2011-12-09:

Patch available now. Sorry for the delay.

As it is not possible to package the required image with a single patch file, I decided to put the menu item into the "share" button menu. For now. However, it's possible to include files with preware hosted patches, so the Readability button might come back after all in an "official" release.

Also the context menu for links now contains an "Open Link in Readability" item. This is especially useful if you want to follow a link and stay within the Readability view.

Having used this function for a few weeks now, I noticed one particular behaviour: Contrary to the bookmarklet version, the API version of Readability reworks not just one single page but pulls additional "more" pages. Which works exceptionally well in blog overviews and with multi-page articles.
Attached Images
File Type: png browser_2011-16-11_225134.png (244.8 KB, 142 views) Email Attachment
Attached Files
File Type: patch OpenInReadability.patch (3.3 KB, 79 views) Email Attachment

Last edited by d12r; 12/09/2011 at 10:55 AM.
d12r is offline   Reply With Quote
Liked by Rnp, stickerboy and Infinite Jest like this.
Thanked by RickNeff, Rnp, T-Pad
Old 11/16/2011, 05:23 PM   #2 (permalink)
Member
 
Join Date: Sep 2011
Posts: 212
Likes Received: 19
Thanks: 40
Thanked 24 Times in 13 Posts
Default

That's great - please add support for the webOS phones, too.
__________________
iPhone 4 --> Pre 3 / TouchPad 32 GB
T-Pad is offline   Reply With Quote
Old 11/16/2011, 05:31 PM   #3 (permalink)
Member
 
Join Date: Nov 2011
Posts: 26
Likes Received: 5
Thanks: 1
Thanked 5 Times in 2 Posts
Default

Quote:
Originally Posted by T-Pad View Post
That's great - please add support for the webOS phones, too.
I'm afraid I can't, I don't have a WebOS phone at my disposal and I don't know anything about the innards of their WebOS. However, the patch is rather straightforward and probably can be easily adapted by someone who knows his way around those systems.
d12r is offline   Reply With Quote
Old 11/16/2011, 05:44 PM   #4 (permalink)
Member
 
Join Date: Aug 2011
Posts: 31
Likes Received: 5
Thanks: 1
Thanked 5 Times in 4 Posts
Default

very nice, looks good!
beasty43 is offline   Reply With Quote
Old 11/16/2011, 08:47 PM   #5 (permalink)
Member
 
Join Date: Jan 2010
Posts: 172
Likes Received: 1
Thanks: 92
Thanked 36 Times in 20 Posts
Default

very nice ! Looking forward to this !
veerar is offline   Reply With Quote
Old 11/16/2011, 11:37 PM   #6 (permalink)
Member
 
Join Date: Jul 2009
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default Would be great for Palm Pre!

Readability is so beautiful. If anyone can create a Readability button for the Palm Pre, that would be wonderful. Thank you!
iseroma is offline   Reply With Quote
Old 12/08/2011, 06:45 PM   #7 (permalink)
Member
 
Join Date: Jan 2010
Posts: 172
Likes Received: 1
Thanks: 92
Thanked 36 Times in 20 Posts
Default

Hi, could you please post what you have up so far ? tia!!
veerar is offline   Reply With Quote
Old 12/08/2011, 10:32 PM   #8 (permalink)
Member
 
Join Date: Aug 2011
Posts: 233
Likes Received: 14
Thanks: 23
Thanked 7 Times in 7 Posts
Default

Yum!
Infinite Jest is offline   Reply With Quote
Old 12/09/2011, 01:07 AM   #9 (permalink)
Member
 
Join Date: Aug 2011
Posts: 1,923
Likes Received: 205
Thanks: 21
Thanked 196 Times in 143 Posts
Default

This looks.. interesting .. except that it destroys any images, links, etc.
__________________
GVoice for all webOS devices - for PlayBook - GVoiceA for Android
XO - The Subsonic Media Commander - webOS Demo and Full version and PlayBook full version available
- Ask500, the webOS polling app


(1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
eblade is offline   Reply With Quote
Old 12/09/2011, 03:40 AM   #10 (permalink)
Member
 
Join Date: Sep 2011
Posts: 66
Likes Received: 32
Thanks: 3
Thanked 69 Times in 6 Posts
Default

Quote:
Originally Posted by eblade View Post
This looks.. interesting .. except that it destroys any images, links, etc.
You obviously don't get the point of it.
PainToad is offline   Reply With Quote
Old 12/09/2011, 05:13 AM   #11 (permalink)
Member
 
Join Date: Aug 2011
Posts: 1,923
Likes Received: 205
Thanks: 21
Thanked 196 Times in 143 Posts
Default

well, i see in the sample, that it has images, however i don't see after playing with it for several minutes, that any images were preserved in the sites that i tried it on. Images can be an important part of the content of a site.
__________________
GVoice for all webOS devices - for PlayBook - GVoiceA for Android
XO - The Subsonic Media Commander - webOS Demo and Full version and PlayBook full version available
- Ask500, the webOS polling app


(1:39:33 PM) halfhalo: Android multitasking is like sticking your fingers into a blender
eblade is offline   Reply With Quote
Old 12/09/2011, 10:40 AM   #12 (permalink)
Member
 
Join Date: Nov 2011
Posts: 26
Likes Received: 5
Thanks: 1
Thanked 5 Times in 2 Posts
Default

Quote:
Originally Posted by veerar View Post
Hi, could you please post what you have up so far ? tia!!
Sorry, I was distracted by work and the browser scrollbar thread. Patch is now in the first post.
d12r is offline   Reply With Quote
Old 12/09/2011, 10:43 AM   #13 (permalink)
Member
 
Join Date: Nov 2011
Posts: 26
Likes Received: 5
Thanks: 1
Thanked 5 Times in 2 Posts
Default

Quote:
Originally Posted by eblade View Post
well, i see in the sample, that it has images, however i don't see after playing with it for several minutes, that any images were preserved in the sites that i tried it on. Images can be an important part of the content of a site.
Readability strips a website's content from the overall design, and should keep images that relate to the content. How well this works depends largely on how well the website is crafted.
d12r is offline   Reply With Quote
Old 12/11/2011, 02:13 AM   #14 (permalink)
Member
 
Join Date: Sep 2011
Posts: 66
Likes Received: 32
Thanks: 3
Thanked 69 Times in 6 Posts
Default

Awesome! Ported it over to Advanced Browser, cheers!
PainToad is offline   Reply With Quote
Old 12/11/2011, 05:55 AM   #15 (permalink)
Member
 
Join Date: Aug 2011
Posts: 184
Likes Received: 23
Thanks: 65
Thanked 26 Times in 8 Posts
Default

Quote:
Originally Posted by PainToad View Post
Awesome! Ported it over to Advanced Browser, cheers!
could you please post it
mistermojorizin is offline   Reply With Quote
Old 12/15/2011, 06:51 AM   #16 (permalink)
Member
 
Join Date: Sep 2011
Posts: 14
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I installed it, but it doesn't show in the browser. I also have Private Browsing and Find-in-page installed. Are there any conflicts?
ubi79 is offline   Reply With Quote
Old 12/15/2011, 06:56 PM   #17 (permalink)
Member
 
Join Date: Sep 2011
Posts: 66
Likes Received: 32
Thanks: 3
Thanked 69 Times in 6 Posts
Default

Quote:
Originally Posted by mistermojorizin View Post
could you please post it
All I did was read the patch file and edit the matching equivalent manually in Advanced Browser. Not hard.
PainToad is offline   Reply With Quote
Old 12/15/2011, 08:24 PM   #18 (permalink)
Member
 
Join Date: Nov 2011
Posts: 26
Likes Received: 5
Thanks: 1
Thanked 5 Times in 2 Posts
Default

Quote:
Originally Posted by ubi79 View Post
I installed it, but it doesn't show in the browser. I also have Private Browsing and Find-in-page installed. Are there any conflicts?
Possibly, but that is not a fault of the patch but a shortcoming of the current patching system when you apply multiple patches to the same files. The current system is not designed for multiple concurrent patches to a file.

There's a slim chance multiple patches can work on the same file but that introduces other problems, e.g. you can only remove patches only in exact reverse order. More probably tho, if multiple concurrent patches to an application work, chances are that's because they modify different files within the application.

There's pretty much nothing I can do about it, I cannot possibly anticipate the changes other patches introduce to the original files. I can only assume an original file and make my modifications accordingly.

Last edited by d12r; 12/15/2011 at 10:29 PM. Reason: reworded
d12r is offline   Reply With Quote
Old 12/19/2011, 02:36 AM   #19 (permalink)
Member
 
Join Date: Aug 2011
Posts: 70
Likes Received: 1
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by PainToad View Post
All I did was read the patch file and edit the matching equivalent manually in Advanced Browser. Not hard.
can you post your port?
locbuondoi is offline   Reply With Quote
Old 02/14/2012, 10:57 AM   #20 (permalink)
Member
 
Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
Default

please add this to preware patches!

webOS-Patches Web Portal
__________________
Please Donate if you like my patches and work. Thanks
rmausser is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0