Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2010, 05:54 AM   #1
Polvo
Enthusiast
Polvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshesPolvo can read faster than his screen refreshes
 
Posts: 45
Karma: 14412
Join Date: Oct 2010
Location: Spain
Device: Kindle 3 - 3G
Javascript and Bookmarklets

Has anyone had any success in making the above work in the K3 webkit browser?

I've just started experimenting by changing the text in /usr/share/browser/readability/readability_min_utf16.js

I've had limited success. I put a simple "search this site in Google" bookmarklet in the file replacing the readability script.

The results? The pop-up box took over 1min to pop-up! When it did I entered some text but was just returned to the same page I had been on and NOT a Google Search results page.

When I tried the two JS lines separately they each worked (but still slowly).

The script:
Code:
javascript:s=escape(prompt('Enter search term(s)'));window.location.href='http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&safe=off&q=site:'+window.location.host+'+'+escape(s)+'&btnG=Google+Search';
Polvo is offline   Reply With Quote
Reply

Tags
bookmarklet, browser, javascript, webkit

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub et javascript zelda_pinwheel Software 9 12-09-2010 04:56 PM
JavaScript and interactivity in iBooks kjk Apple Devices 2 08-16-2010 10:14 AM
I need Javascript help Nate the great Workshop 4 04-04-2009 12:55 AM
iLiad Javascript? jsc iRex Developer's Corner 1 09-10-2006 07:17 AM
Can this be done - remove javascript from a page ScottMattes Workshop 1 05-17-2006 01:27 AM


All times are GMT -4. The time now is 02:58 AM.


MobileRead.com is a privately owned, operated and funded community.