Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

Hackszine reader Pete Warden is the author of a cool Firefox extension called PeteSearch. He wrote in to tell us about his progress with porting the functionality to IE:

PeteSearch is an extension that mashes up Google (and Ask, Technorati, Live and Exalead) search pages to give you hot-keys, dead-link checking and split-screen preview.

Now I’m trying the IE port, and I’ve my own HOWTO with sample code and articles on that painful process!

Building a browser object for IE is a much more laborious process than making a Firefox extension. Welcome to COM DLL hell. Thankfully, Pete’s done a nice job of documenting things while porting his app over, and it’s this sort of first-hand experience that makes it bearable to start a project like this of your own.



  1. says:

    oh my oh my. If I got it right from pete’s video, it visits all the links on the page to see they exits and the search term is inside.
    Well, I find it a bit crazy. remembering the auto follow feature of firefox. it was really abusive. Imagine you do it for each link on google! what a waste of time.
    btw, I guess google already shows you if the searchterm is there in the short description.
    also I’ve check pete’s code, he uses a GET to check the result exits or not, not even a HEAD.
    Real dissapointing.

    beside finding him a bit narcissist, I really liked the split screen idea.

  2. petewarden says:

    Ouch, tell me how you really feel LiveBookMark.

    I’m doing a GET because one of the my biggest time-wasters on obscure searches is pages that don’t have the keywords, either because of deliberate cloaking, or just changes since the pages were spidered. The extension checks the returned HTML to make sure it’s got the keywords. No images or other media are pulled.

    Is that abusing the host’s resources? It’s something I’ve been wrestling with, and is a debate I’d like to have. It seems like the only way users are going to avoid having their time abused by black-hat SEO is some sort of mechanism like this. The current informal code of ethics seems to have been written for webmasters’ benefit, not users.

    I’ll go into more detail, and cover the technical options (robots.txt, opt-in/out, agent detection) for dealing with this in a blog post.

  3. jason_striegel says:

    It’s only grabbing pages when you’re doing a search, so we’re not really talking of anything on the order of Firefox’s autofollow. Typically, you’re searching through the results anyway, so being able to verify what you are clicking on before downloading all the images on a page could actually be saving resources.

    Maybe a on/off toggle would be nice, so that I could turn off the functionality easily without restarting Firefox. Usually, I’m happy without it, but when you’re searching for terms that are hard to find, this is a nice way of filtering out the non-relevant information.

  4. petewarden says:

    There actually is an option, you can toggle it using Control + / (forward slash). I do need to add some GUI and better help system for those sort of preferences too.

  5. says:

    re: petewarden
    almost all sane webmasters agree that autofollow of firefox is abusive. You’ve just introduced another abusive tool to firefox. I agree with jason_striegel about his approach on filtering the terms.
    cloacking is ugly enough but even yahoo does that.You can’t do much about it.
    I’m not trying to argue with you. I really liked the split screen idea. I guess you should just use HEAD to know it the page still exists and leave it to the split screen to find the term is still there.
    when you include robots.txt support, make sure that you’ve adjusting the user-agent as well.
    I appriciate your effort on trying the port the plugin to IE. Opera porting would be appriated as well.

  6. petewarden says:

    I’ve now completed the IE port, and renamed PeteSearch to the more descriptive GoogleHotKeys.

    In addition to the blog posts covering the port I’ve also put together a public wiki with full documentation on creating your own Internet Explorer extensions, and there’s the full source code for the completed plugin for reference too.

  7. nonlinearly says:

    Hi, I have a C code that run on Windows command line. The code is about telephone number identification when the phone is ringing. When I run the exe compiled file from the command line then the program is always open waiting for phone ringing to display the caller’s number…. (the program use a separate thread so as not to hang the other operations until the phone is rung).
    I need this functionality to move it to firefox… any idea?