8 Responses to “Yahoo! Search for Safari plugin”

  1. Anime Girl Says:

    This is fantastic. I was wondering how I could get Yahoo search in Safari and now I can.

    Cheers!

  2. Alex Says:

    Tried to install on 10.4.11 under (using 3.0.4) and the installer had a red band on all disks. I ran the install both as
    a regular user and under sudo. Safari was closed during install attempts.

  3. Jeremy Says:

    @Alex:

    This is caused by not having the latest version of SIMBL installed. I apologize for the lack of appropriate error message, but if you install it then you should be good to go.

  4. seven77 Says:

    hi, just to add a question: am a complete newbie to this, but would love to see if you can actually integrate some specific search
    engines - not looking for yahoo, myself. The tow websites are World of Warcraft related and while firefox used to offer to option,
    looks like Safari doesn’t…

    Do not want to spam, but pls tell me if you could help me out. Email is gave is valid.

    thanks a lot!
    ale

  5. Jeremy Says:

    Assuming you only wanted to replace Yahoo! with (pick a search engine), it would be very easy to do (like <5mins work most likely). If instead you wanted the ability to switch between engines, it would take a fair bit more work. I’ll look into it and then email you with info once I have time to figure it out.

  6. seven77 Says:

    thanks a lot. This is just great! Would love to be able to do the multi search engine thingy that Firefox has…
    Anyaway would love to hear your views.

  7. jermal Says:

    great plug-in,

    how can i easily change the search engine in the code? Which files do i need to change and with what program?

    Also a ‘ restore to google’ package would be very good.
    Thanks,
    Jeroen

  8. Jeremy Says:

    @Jeroen

    It’s pretty obvious if you look in the code (less than a hundred lines of code in the whole plugin), but here’s a couple helpful pointers:

    1.) To change the search provider, you would change this line in “GoogleSearchChannel.m”:

    NSURL *yurl = [NSURL URLWithString: [[NSString stringWithFormat:@”http://search.yahoo.com/search?p=%@”, searchCriteria] stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];

    There you can see the URL being used is:

    http://search.yahoo.com/search?p=%@

    %@ is being replaced with the search term used, so edit this URL as needed for whatever engine you are using.

    2.) To change the label inside the search box, you would edit this line in “BrowserWindowController.m”:

    [[[_toolbarControllerObj searchField] cell] setPlaceholderString:@”Yahoo!”];

    In that line you will see:

    “Yahoo!”

    You would change that string with whatever you wanted to show up in the search box when a user hasn’t typed anything.

    Hope this helps!

    -Jeremy

Leave a Reply