With this script you can search download.com or Cnet. I was bored, so I just made it. Some people maybe will find it useless but I think it's useful! So anyway, just copy the following codes into your script editor in the remotes section.
Commands:
!download (search) - it searches download.com
!cnet (search) - it searches cnet
Anyway, i dont think there are any bugs, problems etc.. It's just a socket :)
So enjoy!
Search download.com and cnet
Script created by: mystery / mysterycool (same thing)
You may NOT remove this message
on *:input:*: {
if ($1 = !download) && ($2) {
if ($chan = $null) {
run http://www.download.com/3120-20_4-0.html?tg=dl-20&qt= $+ $htmlsite($2-) $+ &tag=srch
halt
}
run http://www.download.com/3120-20_4-0.html?tg=dl-20&qt= $+ $htmlsite($2-) $+ &tag=srch
halt
}
}
on *:text:*!download*:*: {
if ($chan = $null) {
msg $chan 11,1Website found:9,1 http://www.download.com/3120-20_4-0.html?tg=dl-20&qt= $+ $htmlsite($2-) $+ &tag=srch
halt
}
msg $chan 11,1Website found:9,1 http://www.download.com/3120-20_4-0.html?tg=dl-20&qt= $+ $htmlsite($2-) $+ &tag=srch
}
on *:input:*: {
if ($1 = !cnet) && ($2) {
if ($chan = $null) {
run http://www.cnet.com/4244-5_1-0.html?query= $+ $htmlsite($2-)
halt
}
run http://www.cnet.com/4244-5_1-0.html?query= $+ $htmlsite($2-)
halt
}
}
on *:text:*!cnet*:*: {
if ($chan = $null) {
msg $chan 11,1Website found:9,1 http://www.cnet.com/4244-5_1-0.html?query= $+ $htmlsite($2-)
halt
}
msg $chan 11,1Website found:9,1 http://www.cnet.com/4244-5_1-0.html?query= $+ $htmlsite($2-)
}
alias htmlsite {
var %i = 1,%r
while (%i <= $len($1-)) {
if ($mid($1-,%i,1) isalnum) { %r = %r $+ $ifmatch }
else { %r = %r $+ % $+ $base($asc($mid($1-,%i,1)),10,16,2) }
inc %i
}
return %r
}