Google Bookmarkのブックマークレット

気付けばGoogleからブックマークレットが提供されていました。いつからだろう?全然気付きませんでした。
これまではどこからか拾ってきたものを使っていました。

javascript:window.open('http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))

Google 謹製はこちら

Google Bookmark

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

やっぱりスマートです。