!google

By brottor on Sep 23, 2005

Copy paste into remotes. Then you can '!google what you are searching for here', and it will /run the search page (already searched). You can input the !google command in a channel or a query and it wont msg chan or query. Also any person can '!google what they are searching for here', and it will /notice the person the search page (already searched!).

on *:input:*: {
  if ($1 = !google) && ($2) {
    if ($chan = $null) {
      run http://www.google.com/search?q= $+ $htmlfrm($2-)
      halt
    }
    run http://www.google.com/search?q= $+ $htmlfrm($2-)
    halt 
  }
}
on *:text:*!google*:*: {
  if ($chan = $null) {
    notice $nick http://www.google.com/search?q= $+ $htmlfrm($2-)
    halt
  }
  notice $nick http://www.google.com/search?q= $+ $htmlfrm($2-)
}
alias htmlfrm {
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
}

Comments

Sign in to comment.
Ghost-writer   -  Aug 23, 2009

Nice :)

 Respond  
irchainscriptz   -  Nov 16, 2008

lol va chez MCdonalds :P

 Respond  
xplo   -  Nov 16, 2008

i haz cheezeburgerrrr !!!

 Respond  
irchainscriptz   -  Nov 16, 2008

Plus not to mention he gave NNscript credit for the google alias, so you can see hes given the proper credit for it :)

 Respond  
napa182   -  Nov 16, 2008

well with him saying that he didnt rip it he redid the code into somthing else that does the same thing.

 Respond  
xplo   -  Nov 16, 2008

easy > From:bottor Oh i forgot to mention...I took the /google alias inside of NNscript and edited it to this form. Thx NNscript!

its actually ripped and slightly modified.

 Respond  
napa182   -  Nov 16, 2008

sercan386 please provide proof that it's ripped.

 Respond  
sercan386   -  Nov 16, 2008

lol ripped :/

 Respond  
Anti   -  Jul 11, 2007

Nice i like it i got one that work\'s XD very nice job i tweaked it a bit so it messages the chan.. so where can i find you at ?

 Respond  
brottor   -  Sep 23, 2005

k fixed thx

 Respond  
brottor   -  Sep 23, 2005

Oh sry=(

 Respond  
bIlliAn   -  Sep 23, 2005

You forgot the htmlfrm alias.

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

 Respond  
brottor   -  Sep 23, 2005

Oh i forgot to mention...I took the /google alias inside of NNscript and edited it to this form. Thx NNscript!

 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.