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-07-2010, 02:58 PM   #1
jetfin
Enthusiast
jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.
 
Posts: 34
Karma: 434
Join Date: Apr 2010
Location: Zagreb, Croatia
Device: KPW, K3, K2i, K2US
K3 - change default google search - Readability & bookmarklets

Now that i'm able to ssh to my new K3, i'm interested in changing the default google search to the mobile version like it is on the K2...

Could anybody point me in the right direction here? Anybody know which file this setting is defined in?

thanks!

Last edited by jetfin; 10-25-2010 at 12:33 PM. Reason: additions to thread title
jetfin is offline   Reply With Quote
Old 10-07-2010, 04:31 PM   #2
enn
Member
enn began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Sep 2010
Device: Kindle 3, Kindle Voyage
The contents of /opt/amaozn/ebook/prefs/search_prefs:

Code:
SearchGoogleURL = http://www.google.com/search?q={searchTerm}M
SearchWikipediaURL = http://en.wikipedia.org/wiki?search={searchTerm}
I haven't tried changing it. I suspect there is a cleaner way to override these prefs in /mnt/us/system as is done with the reader prefs but I haven't tried that either.
enn is offline   Reply With Quote
Old 10-07-2010, 06:18 PM   #3
jetfin
Enthusiast
jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.
 
Posts: 34
Karma: 434
Join Date: Apr 2010
Location: Zagreb, Croatia
Device: KPW, K3, K2i, K2US
Thanks!

I changed both google and wikipedia to:

Code:
SearchGoogleURL = http://www.google.com/m/search?q={searchTerm}M
SearchWikipediaURL = http://en.m.wikipedia.org/wiki?search={searchTerm}
Restarted and works!
jetfin is offline   Reply With Quote
Old 10-13-2010, 06:37 AM   #4
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
Thanks for the post. I finally got SSH working to my Kindle 3 and can open the file in WinSCP but I can't save it back to the Kindle. I'm logged in as root. Any ideas?
Polvo is offline   Reply With Quote
Old 10-13-2010, 06:54 AM   #5
fheusel
Junior Member
fheusel began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by Polvo View Post
Thanks for the post. I finally got SSH working to my Kindle 3 and can open the file in WinSCP but I can't save it back to the Kindle. I'm logged in as root. Any ideas?
You have to mount the root-fs writeable via ssh (use Putty and read the login-message of your kindle).
fheusel is offline   Reply With Quote
Old 10-13-2010, 07:20 AM   #6
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
Thanks. In WinSCP I missed the login screen!

I found the solution: typing mntroot rw to make filesystem writeable
Polvo is offline   Reply With Quote
Old 10-13-2010, 04:53 PM   #7
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,106
Karma: 4987077
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Just in case it wasn't obvious for everyone:

Don't forget to put it back in a read only state after:

mntroot ro
NiLuJe is offline   Reply With Quote
Old 10-14-2010, 01:41 PM   #8
jetfin
Enthusiast
jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.jetfin has a complete set of Star Wars action figures.
 
Posts: 34
Karma: 434
Join Date: Apr 2010
Location: Zagreb, Croatia
Device: KPW, K3, K2i, K2US
Just a quick update:

Although this hack does what was most important to me (changing default google and wikipedia searches *from* the home screen), when the web browser is running and you do a search through the URL text box, both google and wikipedia go to the regular website...

This means there must be another separate browser setting for this somewhere...
jetfin is offline   Reply With Quote
Old 10-15-2010, 04:13 PM   #9
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
I've been looking through the dirs and there are some interesting browser settings but I still can't find where the search and Wikipedia URLs are set.

I did discover that the Article Mode is just a JavaScript file which could be altered to bring bookmarklets to the Kindle. There are also a number of (disabled) experimental settings such as setting a home URL which should display when the Home button is pressed. There's another one that shows a modified pointer when not over a text input box etc. Pressing the 5 way changes the pointer to a 4 way arrow on 1st pressing then a double arrow with two ting magnifying glasses marked "+" and "-". Sadly they didn't do anything that I could see.

Take a look at the file, its at /opt/amazon/ebook/config/wrs.ini (heavily commented)

The Javascript for Article mode is in /usr/share/browser/readability/readability_min_utf16.js

PS I also found that wget is installed and works (via wifi anyway).
Polvo is offline   Reply With Quote
Old 10-15-2010, 06:02 PM   #10
Tiersten
Guru
Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.Tiersten shines like a glazed doughnut.
 
Posts: 987
Karma: 8641
Join Date: Sep 2010
Device: Kindle 3G+WiFi
Quote:
Originally Posted by Polvo View Post
I did discover that the Article Mode is just a JavaScript file which could be altered to bring bookmarklets to the Kindle.
Its a modified version of the Readability tool. Apple integrated the same script into Safari.

Quote:
Originally Posted by Polvo View Post
PS I also found that wget is installed and works (via wifi anyway).
The Kindle scripts use it.
Tiersten is offline   Reply With Quote
Old 10-16-2010, 07:14 AM   #11
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
Is there a better version of the Readability script available for the Kindle? I'd prefer that thescriptt always made an attempt to display a page instead of giving a warning message.

My JavaScript skills are limited, how can the standard Readability bookmarklet be adapted?
Polvo is offline   Reply With Quote
Old 10-18-2010, 06:49 AM   #12
neftaly
Junior Member
neftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with others
 
Posts: 8
Karma: 2600
Join Date: Oct 2010
Device: none
Here's Readability 1.71, minus all branding and set to always attempt to display homepages.
I also made it remove link targets (i.e, fark.com is now usable).
http://kindlebru.com/apps/readabilitymod-0.1.zip


Last edited by neftaly; 10-18-2010 at 09:23 AM. Reason: Added a K3 installer
neftaly is offline   Reply With Quote
Old 10-18-2010, 11:40 AM   #13
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
Good work! I'll try it out later.

Any ideas about using the readability js file as some kind of bookmarklet manager?
Polvo is offline   Reply With Quote
Old 10-19-2010, 08:31 PM   #14
neftaly
Junior Member
neftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with othersneftaly plays well with others
 
Posts: 8
Karma: 2600
Join Date: Oct 2010
Device: none
Quote:
Originally Posted by Polvo View Post
Good work! I'll try it out later.

Any ideas about using the readability js file as some kind of bookmarklet manager?
I've actually been working on that for the last few hours (have written a sort of web app loader around it). I'll put a link up when I finish the download manager
neftaly is offline   Reply With Quote
Old 10-20-2010, 04:18 AM   #15
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
Sounds great, I can't wait to bring some power to the browser!
Polvo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change default fonts p3aul Sigil 3 10-18-2009 08:14 PM
Google CEO Sees No Alternatives to Google Book Search sforce News 44 09-23-2009 03:52 PM
How do I change the default folder? johnwhelan Calibre 2 08-07-2009 12:50 PM
Google Book Search to search full-text books online Bob Russell Deals, Freebies, and Resources (No Self-Promotion) 1 08-19-2006 01:13 PM
Google Print becomes Google Book Search Alexander Turcic News 0 11-20-2005 10:22 AM


All times are GMT -4. The time now is 04:44 PM.


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