(function(){
  jQuery.extend({
    link:function(text){
      return text.replace(
      /[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/g, function(m) {
        return m.link(m);
      });
    }
  });
  function linkIt(){
    $(this).html(jQuery.link($(this).html()));
  }
  jQuery.fn.link= function(){
    this.each(linkIt);
  };
})();