webOS Nation Forums >  Homebrew >  webOS patches > [Patch] Enable Web Service Bookmarks
[Patch] Enable Web Service Bookmarks

  Reply
 
LinkBack Thread Tools Display Modes
Old 11/01/2011, 02:00 PM   #1 (permalink)
Member
 
Join Date: Nov 2011
Posts: 26
Likes Received: 5
Thanks: 1
Thanked 5 Times in 2 Posts
Default [Patch] Enable Web Service Bookmarks

(Tested on TouchPad, 3.0.4.)

This patch makes the browser recognize and use specially formatted bookmarks that submit the current URL to a web service. It looks for the keyword "%url%" (without quotes) in the bookmark address, replaces it with the current URL, and submits this constructed URL. Regular bookmarks remain untouched and work as before.

Examples for bookmark URLs:
Translate the current web page using Google:
Code:
http://translate.google.com/translate?u=%url%
Translate tue current web page using Microsoft:
Code:
http://www.microsofttranslator.com/bv.aspx?from=&to=en&a=%url%
Submit the current web page to ViewText:
Code:
http://viewtext.org/article?url=%url%
And because it's rather tedious to edit a bookmark in the input field within the tiny bookmark dialog, the patch also enlarges the dialog considerably.
Attached Files
File Type: patch EnableWebServiceBookmarks.patch (915 Bytes, 11 views) Email Attachment
d12r is offline   Reply With Quote
Reply

 

Tags
3.0.4, patch, touchpad

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0