开发者

Open a new window displaying the google search results

When user selects a text, my extension automatically searches on google the selected text and the search results are displayed on a new popup window.

var searchWindow = ww.openWindow(null, "http://www.google.com/search?q=" + encodeURI(annotateSelectText)+"",
                    "searchWindow", "menubar=0,status=0,width=750,height=750", null);

I need few suggestions and sample code if possible on how to go about achieving what I need. I want to add check boxes in the beginning of each search results. So the user can check the search results that are relevant to them and save that url and text开发者_StackOverflow中文版 snippet in SQLite. I am bit confused with regard to adding checkboxes in the google search result window.

Any suggestions?

cheers


Instead of modifying Google's search result page, consider using their ajax search api. It will give you the url, title, text snapshot etc in the response and you can display it the way you want.

I once made a little Firefox extension LinkIt using that API - may be you wanna download it and examine the code :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜