Thursday, November 12, 2009

Google Bookmarks in iPhone

I recently decided to move my bookmarks from Simpy (http://simpy.com) where they have languished waiting for me to tag them, to Google Bookmarks (http://google.com/bookmarks).

There’s a bookmarklet on that page for desktop browsers that works well. However I also wanted to use this on my iPhone. You can use bookmarklets from the iPhone bookmarks once you get them in there, but there’s no simple way yet that I could find.

Here’s the current code for that bookmarklet, hopefully the blog engine won’t mangle it. Just create a throw-away bookmark and then edit it, setting the url to the following by copy-pasting it:

javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open("http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=420px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})();

UPDATE: I confirmed that this works with the iPhone, but so far no dice with the Android Droid..

UPDATE; It looks like Android (well the built-in browser) doesn’t support bookmarklets at this time -

( http://friendfeed.com/android/03b4e99a/bookmarklets-in-android-browser ). The workaround would be to copy-paste the bookmark URL ahead of the URL you wanted to bookmark, which sounds painful. I’ll try this out some before recommending it.

1 comment:

AlexJ said...

To enable bookmarklets in Android:

* Get My Bookmarks (free) from the Market

* Export your *desktop* computer's Chrome, FF or IE bookmarks

* Go to the My Bookmarks site on your desktop computer (http://bit.ly/8WXIDf)

* Upload the generated file

* Load My Bookmarks on your Android device

* Begin importing

* Choose "One by One"

* Import only the bookmarklets (plus any other bookmarks you want on your device)

The bookmarklets will now be in your browser *without* the html:// prefix.