7 Comments

  • Saurabh

    I was unable to get your site search to work.
    The one line should be this
    “javascript:window.location.href=’http://www.google.com/search?q=%ssite:’+document.location;” or with a space between %s and site or something else?
    This is the only search that seems non-overkill for my uses. :)

  • @Saurabh

    Yep, there should be space after %s

    By the way I made one more tweak to use domain instead of whole URL, more convenient this way.

    javascript:window.location.href='http://www.google.com/search?q=%s site:' +document.location.hostname;

  • Saurabh

    Yeah now its working for me. The problem was that I had “Reuse current tab” disabled. So the search opened in a new tab where the javascript didn’t do its job. After enabling it,everything runs fine.

  • Saurabh

    and one more thing :there should be a + after site:’ in the second tweak.

  • @Saurabh

    Ops, thanks! Copy/pasted it from Opera, but it is hard to post code in WordPress – everything is sanitized to near-death for security. :)

  • purestmagic

    How about creating simoultaneous searches using post requests in javascript ? anyone got an idea ?

  • @purestmagic

    Launching several searches won’t be too hard… But I am not good enough with JS to deal with POST requests, sorry. :) Maybe when I get time to read up on JS at last.

Comments are closed.