MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Kindle Developer's Corner (https://www.mobileread.com/forums/forumdisplay.php?f=150)
-   -   An online editor for Kindle browser bookmarks file (https://www.mobileread.com/forums/showthread.php?t=104390)

anmipo 10-28-2010 12:36 AM

An online editor for Kindle browser bookmarks file
 
Organizing the browser bookmarks on a Kindle is a job for a real Jedi :)
Basically, one can only add a bookmark, rename it or delete it. No sorting, no custom URLs...
This seems to annoy many people (myself included).

To solve the problem, I've created an online Kindle Bookmark Editor.
It takes the binary bookmarks file and enables you to edit it easily and intuitively.
I've tested it with Kindle 3, not sure if other devices are compatible...

I hope you'll find it useful.


P.S. And since this is a developer's forum - here's some technical info.
The bookmarks_wv file is simply a serialized java.util.ArrayList, containing bookmark objects of class com.amazon.ebook.booklet.browser.BookmarkItem. The BookmarkItem, in turn, has only two fields: title and url, both of type String.
The rest was straight-forward :)

Acorn 10-28-2010 04:51 AM

Brilliant! Does this allow you to use bookmarklets?

anmipo 10-28-2010 10:00 AM

Well, you can add bookmarklet URLs.
Unfortunately, the browser does not recognize the "javascript:" protocol, and instead of executing the script, opens it in google search.

There's a possibility to use bookmarklets through the "Article mode" menu (which actually executes /usr/share/browser/readability/readability_min_utf16.js in the current page's context). Too bad that the "Article mode" resets whenever you surf to a different page...

Millbrook 10-28-2010 11:59 AM

Thank you, anmipo! I just tried out your editor and it worked like a charm.

FF2 10-28-2010 04:17 PM

I am one of those who probably need more help, so HELP.

I think I have installed the jailbreak. At least I have screensaver hack working.

What else do I need to do. I do not find that file or folder tree.

My k3 was plugged into usb and I saw files/folders but not that one.

Thanks in advance (or tell me this is over my head!)

Polvo 10-28-2010 06:26 PM

Great work! Is there a (Java) editor that can edit these serialised data files directly?

anmipo 10-28-2010 09:55 PM

Quote:

Originally Posted by Polvo (Post 1187440)
Great work! Is there a (Java) editor that can edit these serialised data files directly?

None that I know of...
However, it's easy to read/write this file from your own Java program:
Code:

//open an input stream for bookmarks_wv
ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
ArrayList<BookmarkItem> bookmarks = (ArrayList<BookmarkItem>) objectInputStream.readObject();

//do something with the bookmarks

ObjectOutputStream objectOutputStream = new ObjectOutputStream(outStream);
objectOutputStream.writeObject(bookmarks);
//close streams


anmipo 10-28-2010 10:06 PM

Quote:

Originally Posted by FF2 (Post 1187256)
I think I have installed the jailbreak. At least I have screensaver hack working.

What else do I need to do. I do not find that file or folder tree.

My k3 was plugged into usb and I saw files/folders but not that one.

The required file is not accessible when you connect the device as a USB drive. You'll need to use telnet or SSH to access it. Check the forum how to do that.
If "SSH" and "telnet" sounds Chinese to you, it's probably better not to mess with them at the moment, as you risk bricking your Kindle.

pgf 02-22-2011 12:32 PM

Quote:

Originally Posted by anmipo (Post 1186166)
I've tested it with Kindle 3, not sure if other devices are compatible...

sadly, it seems not to work with the "bookmarks" file from kindle 2:
Code:

Error: java.io.IOException: java.lang.ClassNotFoundException: com.lab126.booklet.browser.BookmarkItem
i'm no java programmer, so can't say whether the format is similar to the kindle 3 format or not.

billmilo 02-22-2011 06:35 PM

what are user name and password for kindle 3 to access via ssh?

kranu 02-22-2011 08:48 PM

Quote:

Originally Posted by billmilo (Post 1409982)
what are user name and password for kindle 3 to access via ssh?

Connect via USB first. Set the password there...

kranu 02-22-2011 10:15 PM

Well, you ain't no Jedi, but your app is nice. Thanks :)

arikfunke 07-16-2011 06:22 AM

Send browser hangup signal instead of reboot?
 
Hi,

would it be possible to send the browser a HUP signal rather than restart the entire device?

I use lauchpad to switch between two bookmark files and it is quite time-consuming to restart the entire framework to force a reload of the bookmark file. Just forcing a shutdown / reinitialisation of the browser should be much fast.

Many thanks for any hints.
-Arik

nafberger 08-15-2011 07:10 PM

oy vey
 
Mr. animpo can you please help me, I want to edit the internet browser bookmark file on my kindle 3, the link you provided "http://kindle-bookmark-editor.appspot.com/" instructs you to grab the file but I can't find it in my kindle even after enabling to see hidden and protected system files, what program do I need to "see" the internet browser bookmark file in my kindle, your help will be very much appreciated

anmipo 08-19-2011 05:40 AM

Quote:

Originally Posted by nafberger (Post 1702803)
I can't find it in my kindle even after enabling to see hidden and protected system files, what program do I need to "see" the internet browser bookmark file in my kindle, your help will be very much appreciated

You'll need to jailbreak the device first, and then use SSH or Telnet to access it and copy the required file from the hidden system partition. After editing the file, you'll need to copy it back into the system.

If you feel uncomfortable with jailbreaking or SSHing, than it is probably safer to avoid this approach, as you might brick your Kindle. Unfortunately, currently there is no way to make bookmark editing more user-friendly...


All times are GMT -4. The time now is 11:36 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.