要望:短縮URLHauu - No.2009 [返信]
長いURLをはりつけるさいに自動でhttp://goo.gl/などを利用して
短くしてくれる機能をつけてください。

検索結果をペーストして何十行もログを流して涙目・・・とかがよくあるのでお願いします。
Le - No.2026
スクリプトを用いて似た機能が実現できますよ?

以下、簡単な例
----
function event::onSendingCommand(command, param, context) {
 if ( command.match("(HTTPS?://[-_.!~*\'()a-zA-Z0-9;/?:@&=+$,%]+)") ) {
  var url = RegExp.$1;
  var req = new ActiveXObject("Microsoft.XMLHTTP");
  if (req) {
   req.onreadystatechange = function() {
    if (req.readyState == 4) {
     var s = req.responseText;
     if ( s.match(/{"short_url" *: *"(https?:\/\/[-_.!~*\'()a-zA-Z0-9;/?:@&=+$,%]+)"}$/) ) {
      sendRaw("PRIVMSG " + selectedChannel.name() + " :" + RegExp.$1);
     }
    }
   }
   url = "http://ggl-shortener.appspot.com/?url=" + encodeURIComponent(url.toLowerCase());
   req.open('get', url, true);
   req.send('');
  }
 }
}