chrome bookmarks in QS

98 views
Skip to first unread message

dsanson

unread,
Mar 10, 2011, 3:32:35 PM3/10/11
to Blacktree: Quicksilver
I couldn't find a Chrome plugin for QS. An obvious workaround is to
use something like xmarks to sync bookmarks with Firefox or Safari.
But this won't get you access to Chrome's history.

I'm not up for writing a plugin. But I have managed to hack together
access to both the bookmarks and the history. The fact that this was
easy to do makes me suspect that writing a plugin would not be too
difficult for someone who has the time and knows how to write QS
plugins.

1. Bookmarks

Chrome stores its bookmarks in a JSON formatted file. There is a
python script that converts this to html here:

http://www.capybara.org/~dfraser/archives/355/comment-page-1#comment-9932

The script will generate an HTML file. You can set the name and
location of that HTML file by editing the value of the output_file
variable in the script. QS can scan that file for links (Catalog--
>Custom-->+ File and Folder Scanner-->Source Options-->Include
Contents-->HTML Links).

2. History

Chrome stores its history in an SQLite file. I have no sqlite foo. But
AlecSashka provides a command line that will dump the urls into a txt
file here:

http://www.google.com/support/forum/p/Chrome/thread?tid=0dd0b74a4e45a6a7&hl=en

Based on this, I've thrown together a fairly trivial script that will
generate a txt file with one url per line:

https://gist.github.com/864823

QS can scan this file for links (Catalog-->Custom-->+ File and Folder
Scanner-->Source Options-->Include Contents-->Text Lines).

You'll need to run these scripts every time you want to refresh QS's
catalog of Chrome's history and bookmarks. You could make this
automatic by using cron or launchctl. I haven't bothered to do that.

-David

pendolino

unread,
May 24, 2011, 4:21:00 AM5/24/11
to blacktree-...@googlegroups.com
thanks for putting these tools together. i agree that a plugin should be made for Chrome with QS considering how popular the browser now is. it has displaced Safari for almost all of my browsing needs.
Reply all
Reply to author
Forward
0 new messages