![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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'; |
![]() |
![]() |
![]() |
Tags |
bookmarklet, browser, javascript, webkit |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |