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 { }