マイはてな(プロフィール)に移動しやすくするBookmarklet

既にいくつかありそうですが*1

リンク先を変更する

javascript:void(function(a,h,u,l){for(i=0;i<a.length;i++){l=a[i].getAttribute(h);if(!l)continue;if(u=l.match(/^http:\/\/[\w\.]+(?:hatena.ne|hatelabo).jp\/([a-zA-Z][\w-]{1,30}[a-zA-Z0-9])\/$/)){a[i].setAttribute(h,'http://www.hatena.ne.jp/'+u[1]+'/')}}})(document.getElementsByTagName('a'),'href')

プロフィールに移動する

javascript:void(function(l,u){if(u=l.match(/^http:\/\/[\w\.]+(?:hatena.ne|hatelabo).jp\/([a-zA-Z][\w-]{1,30}[a-zA-Z0-9])\//)){location.href='http://www.hatena.ne.jp/'+u[1]+'/'}})(location.href)

*1:というか、自分自身前に作ったような気もする