(function () {
var f = function(doc) {
  var aTags = doc.getElementsByTagName('a');
  for (var i = 0, len = aTags.length;i < len;i++){
    var a = aTags[i];
    if (a.href.match(/user\/\w+\/friend\/(\w+)/)) {
      a.href = 'http://twitter.com/' + RegExp.$1;
    }
  }
}
f(document);
if (window.AutoPagerize) window.AutoPagerize.addFilter(function(docs){
  for (var i = 0,l = docs.length;i < l;i++) f(docs[i]);
});
})();
http://os0x.g.hatena.ne.jp/os0x/20080326/1206542957