05-30-2011, 12:56 AM | #1 |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
Perfect solution: Kindle Browser open links in same window
I found a Chinese guy announced his perfect solution to let browser open links in same window. here is the link:
http://hi.baidu.com/44670/blog/item/...ea9018eb1.html or http://bbs.mydoo.cn/thread-22056-1-1.html?sid=B5U9Id The idea is just replace the file /usr/lib/libwebkit-1.0.so.2.5.0 with his patched version. I post it here with my translation: ------------ 要使用这个补丁,需要: Requirement: 1.越狱 1. Jailbroken 2.安装usbnetwork,并能够通过winSCP等工具连接至kindle替换系统文件。 2. usbNetwork hack 3.是kindle 3,并且系统版本是3.1 3. Just for Kindle 3, firmware 3.1 (My Comment: it works on my DXG with K3 firmware installed) 手动替换步骤: Steps: 1.从下面的链接里下载,并解压缩 1. Get the patch file from below and uncompress it, then you will get a file named libwebkit-1.0.so.2.5.0: http://u.115.com/file/bhnxmx7n 2.备份kindle中的/usr/lib/libwebkit-1.0.so.2.5.0 强烈建议,以便出现问题时有办法恢复,升级固件时,也需恢复原文件 2. backup your original /usr/lib/libwebkit-1.0.so.2.5.0 file. 3.将压缩包里的libwebkit-1.0.so.2.5.0文件复制到/usr/lib下,并替换原文件 3. Replace file /usr/lib/libwebkit-1.0.so.2.5.0 in your kindle with the file you just get in step 1 4.重启 4. Restart your Kindle -------------- Last edited by liuto; 05-30-2011 at 01:01 AM. |
05-30-2011, 01:21 AM | #2 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
Thank you! I was going to do something like this, but never got the time.
|
05-30-2011, 03:09 AM | #3 |
Enthusiast
Posts: 32
Karma: 1178
Join Date: Apr 2011
Device: Kindle 3
|
Don't work with m.gmail.com
Not perfect |
05-30-2011, 07:41 AM | #4 |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
|
05-30-2011, 07:48 AM | #5 |
Enthusiast
Posts: 32
Karma: 1178
Join Date: Apr 2011
Device: Kindle 3
|
|
05-30-2011, 08:21 AM | #6 | |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
Quote:
I saw it is in 'Basic HTML' mode... But yes, I met one time when I press back button, at that time I saw the screen only display inbox mails with large line space, no sidebar, in this case I cannot open mail... but when you press 'back' button again and got it into 'basic HTML' mode, it works again. BTW, Does this exist before you applied the patch? Last edited by liuto; 05-30-2011 at 08:27 AM. |
|
05-30-2011, 01:16 PM | #7 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
So I took a look at how his "patch" worked. He replaced all instances of "_blank" and "target" with random stuff like "xxxxx" and "tbrget". This will allow most new windows to open, but anything that opens new windows in another method or using javascript won't be affected. There might also be unintended side effects, but I'm just guessing. The better way of doing it would be to look for the source file that handles opening new window in the Webkit WebCore source and make it return without a new window and recompile it. This will take a long time to set up though because you also need to cross-compile stuff like fb and libcurl. This will have to do for now.
|
05-30-2011, 02:47 PM | #8 | |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
Quote:
|
|
05-30-2011, 03:23 PM | #9 |
Kindle Dissector
Posts: 662
Karma: 475607
Join Date: Jul 2010
Device: Amazon Kindle 3
|
They didn't need to make any changes. libwebkit is the backend that handles everything. browserd is the middle man that gets the web pages and renders them onto the screen. the brower kindlet is the frontend that sends urls and stuff to browserd. The Kindle specific stuff are in browserd and the kindlet.
|
05-30-2011, 03:27 PM | #10 | |
Connoisseur
Posts: 50
Karma: 70
Join Date: Nov 2010
Device: Kindle DXG / Kindle 3
|
Quote:
But now, you know I am happy with your 3.1 firmware. lol Last edited by liuto; 05-30-2011 at 03:32 PM. |
|
05-30-2011, 06:15 PM | #11 | |
Connoisseur
Posts: 82
Karma: 5072
Join Date: Nov 2010
Device: KPW
|
Quote:
Which is a pitty, because the new mobile version is much neater, but the old html version has an html preview for attachments, which is also handy - you can read all sorts of documents that way (PDF, DOC, XLS, what not...) |
|
09-13-2011, 07:01 AM | #12 |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
|
12-22-2011, 01:18 AM | #13 |
Groupie
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
|
Does this work on firmware version 3.3?
|
05-26-2012, 11:30 AM | #14 |
Junior Member
Posts: 1
Karma: 10
Join Date: May 2012
Device: Kindle Keyboard 3G
|
i couldn't find directory /usr/lib/ in my kindle keyboard 3g, help me please
|
05-26-2012, 11:52 AM | #15 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I.E: What have you done? - - - - K3-V3.2.1 it certainly looks like the directory is there to me (although not that version of libwebkit - directions must be for another model and/or firmware version): Note: Check the date (year) of the original post. Code:
$ ls -l /usr/lib/libwebkit* lrwxrwxrwx 1 root root 25 2011-12-15 01:23 /usr/lib/libwebkitgtk-1.0.so.0 -> libwebkitgtk-1.0.so.0.7.3 -rw-r--r-- 1 root root 22085280 2011-12-15 01:25 /usr/lib/libwebkitgtk-1.0.so.0.7.3 lrwxrwxrwx 1 root root 25 2011-12-15 01:23 /usr/lib/libwebkitgtk-3.0.so.0 -> libwebkitgtk-3.0.so.0.7.3 -rw-r--r-- 1 root root 22081120 2011-12-15 01:27 /usr/lib/libwebkitgtk-3.0.so.0.7.3 Directions presume you can access (see) the entire filesystem. Such as when you are logged in over ssh or using the operator's serial console port. What you (normally) see over the USB connection IS NOT the root of the Kindle's file system. Last edited by knc1; 05-26-2012 at 12:00 PM. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle web browser open links in same window | yifanlu | Kindle Developer's Corner | 65 | 02-05-2014 12:11 PM |
Send websites / links to Kindle - extension for browser? | scenox | Kindle Developer's Corner | 0 | 12-20-2010 12:23 PM |
Found Perfect and Cheap USB to Power Charger/Adapter solution for Kindle | guineapiguser | Amazon Kindle | 20 | 08-30-2010 07:11 AM |
Open HTML from Kindle file system w/browser | tomsem | Kindle Developer's Corner | 2 | 05-03-2009 01:21 PM |
Browser Window on Kindle 2 | glorya | Amazon Kindle | 9 | 03-26-2009 11:40 AM |