It's triggered with !g (search stuff)
You can trigger the script yourself
You can also use /g (search stuff) and it will echo the results to only you
It only returns 1 result, it doesn't do math or any extra features the google website does, it only does basic results
create a variable %chan_whitelist with a list of chans separated by spaces for chans you wish to have the script work in, Ex: %chan_whitelist #pball #lladq
If you want it to work in all chans remove the line "if (!$istok(%chan_whitelist,$chan,32)) halt"
There is a limit of 1 search every 5 seconds for spam protection, that can be changed in this line "else set -u5 %googlespam 1" by editing -u# to a different number
No guarantees on this working forever, but with the particular method this uses it shouldn't change and stop working much hopefully. Just message me here if the script stops working.
(Please keep the comments related to the script, pball looks at those people who argue about script vs snippet)
Cool, I messed with it a little last night and found that it just needed "client=pub-" to return results. I use the api for mine but I use normal google for site searches. Using /custom? will use less resources than /search? . I also found that you can use &num=X to control the number of results. Have a look : http://www.google.com/custom?hl=en&client=pub-&q=test&num=1
I'll probably use /custom search with &num , the next time I have to use google for a site search :)
Just curious: What is the point of this long URL:
/custom?hl=en&client=pub-4099951843714863&cof=FORID%3A1%3BGL%3A1%3BS%3Ahttp%3A%2F%2Fwww.hyperwords.net%2F%3BL%3Ahttp%3A%2F%2Fwww.hyperwords.net%2Fhy-for-google.gif%3BLH%3A100%3BLW%3A100%3BLBGC%3AFFFFFF%3BLP%3A1%3BLC%3A%230033cc%3BVLC%3A%23333333%3BGALT%3A%23999999%3B&q= $+ $web_input($2-) $+ &btnG=Search
I noticed the almost identical url in this snippet: http://www.hawkee.com/snippet/7157/
I always just use this: /search?q=fire and it seems to work fine, so I was just wondering what hyperwords.net and all the rest of this does to change the results.
Is hyperwords your website ?
What do you mean? For one I often see people complaining about no working google scripts. Secondly do you mean only return simple results and not doing math/definitions/currency/etc. I have another google script which offers all of those options, but it uses a C# exe, requires more upkeep, and I'm selfish about that one.