alias -l htmlfree { var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, ) | return $remove($replace(%x,",",<,<,>,>,$cr,$chr(32),$lf,$chr(32),&,&),$chr(9)) } alias -l addmark { return $+($sock($1).mark,$chr($3),$2) } alias -l between { noop $regex($1,/\Q $+ $2 $+ \E(.*?)\Q $+ $3 $+ \E/gi) | return $regml($4) } alias -l smsg { msg $iif(c isincs $chan($1).mode,$1 $strip($2-),$1-) } on *:text:*.youtube.com/watch?v=*:#: { if (!$sock(youtube)) { sockopen youtube www.youtube.com 80 sockmark youtube $+(#,>,$gettok($1-,2,61)) } } on *:sockopen:youtube: { tokenize 62 $sock(youtube).mark sockwrite -n $sockname GET /watch?v= $+ $gettok($2,1,38) HTTP/1.0 sockwrite -n $sockname Host: www.youtube.com $+ $crlf $+ $crlf } on *:sockread:youtube: { sockread %youtube tokenize 62 $sock(youtube).mark if (