Jethro commented on a Page, Random FML Script  -  Apr 29, 2011

b0sse, that website's source code is different from the original one. Here is the working modification:

on $*:text:/^([!.@])TH$/Si:#:{
  if (!%pro) { inc -u4 %pro | if ($sock(TH.)) sockclose $v1
    sockopen TH. www.thathigh.com 80
    sockmark TH. $iif($regml(1) = !,msg #,notice $nick)~$&
      $+($chr(3),1,$chr(40),$chr(3),2,Random ThatHighâ„¢,$chr(3),1,$chr(41))
  }
}
On *:SOCKOPEN:TH.:{
  if (!$sockerr) {
    sockwrite -n $sockname GET /random/ HTTP/1.1
    sockwrite -n $sockname Host: $sock(TH.).addr $+ $str($crlf,2)
  }
}
On *:SOCKREAD:TH.:{
  if (!$sockerr) {
    var %TH | sockread %TH | if (storylink isin %TH) {
      tokenize 62 $remove($v2,<a class=" $+ $v1 $+ " href="//",</a)
      $gettok($sock(TH.).mark,1,126) $* | sockclose $sockname
    }
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.