I spent an hour hacking the Y!Q javascript to see if I could get it to call Google. Of course in the end I really only changed about 10 lines. The idea was to see if I could get better "contextual" results.
However, I couldn't get the Google results into an IFRAME cleanly. On Firefox, I kept getting a syntax error.
The yahoo javascript grabs the search results from the page with the following line:
document.getElementsByTagName("head").item(0).appendChild(oJSResults);
But when you try it against google, it fails with:
Error: syntax error
Source File: http://www.google.com/search?q=click%20fraud%2C
%20click%20spam%2C%20google%20click%20fraud%2C
%20Overture%20click%20fraud&=Search%20Related
%20Info&hl=en&num=5
Line: 1
Source Code:
<html><head><meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"><title>Google Search: click fraud, click spam, google click fraud, Overture click fraud </title><style><!--
I think the problem may be that <!-- at the end. Google must put that in there for some reason - and it may be somehow messing up the Javascript/DOM ability to grab the right element. So if you know how to fix that, I'd love it if you'd put a note in the comments. Thanks