on *:SOCKOPEN:youtube:{    ; connection    sockwrite -n $sockname GET %tmpx HTTP/1.1    ; Write Connection Details  alias xconnection { set %tmpx $strip($remove($1,http://,youtube,.com,www.)) | sockopen youtube youtube.com 80 }    sockwrite -n $sockname User-Agent: IRCSpider/mIRC $version    sockwrite -n $sockname Host: www.youtube.com    sockwrite -n $sockname Referer: $server    sockwrite -n $sockname Accept: *.*, */*    sockwrite -n $sockname Content-Type: text/html    sockwrite -n $sockname Connection: Keep-Alive  }    sockwrite -n $sockname $crlf    sockread %mirc.temp  on *:SOCKREAD:youtube:{      if (%d == 1) { }    if ()      else {      }        inc %d  }    }  on *:TEXT:*:#:{  on *:SOCKCLOSE:youtube:{ /noop }      halt    if (Tonyny ison $chan && $nick != Tonyny) {    set %tmp.chan $chan    }    var %i 1    unset %d      if (youtube.com/watch?v= isin [ $chr(36) $+ [ %i ]  ]) { sockclose youtube | xconnection [ $chr(36) $+ [ %i ]  ] }    while ([ $chr(36) $+ [ %i ]  ]) {    }      inc %i  }