<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Yahoo! Search for Safari plugin</title>
	<atom:link href="http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Fri, 05 Sep 2008 14:52:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Jeremy</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-78</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Sat, 16 Feb 2008 21:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-78</guid>
		<description>@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</description>
		<content:encoded><![CDATA[<p>@Jeroen</p>
<p>It&#8217;s pretty obvious if you look in the code (less than a hundred lines of code in the whole plugin), but here&#8217;s a couple helpful pointers:</p>
<p>1.) To change the search provider, you would change this line in &#8220;GoogleSearchChannel.m&#8221;:</p>
<p>NSURL *yurl = [NSURL URLWithString: [[NSString stringWithFormat:@&#8221;http://search.yahoo.com/search?p=%@&#8221;, searchCriteria] stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];</p>
<p>There you can see the URL being used is:</p>
<p><a href="http://search.yahoo.com/search?p=%@" rel="nofollow">http://search.yahoo.com/search?p=%@</a></p>
<p>%@ is being replaced with the search term used, so edit this URL as needed for whatever engine you are using.</p>
<p>2.) To change the label inside the search box, you would edit this line in &#8220;BrowserWindowController.m&#8221;:</p>
<p>[[[_toolbarControllerObj searchField] cell] setPlaceholderString:@&#8221;Yahoo!&#8221;];</p>
<p>In that line you will see:</p>
<p>&#8220;Yahoo!&#8221;</p>
<p>You would change that string with whatever you wanted to show up in the search box when a user hasn&#8217;t typed anything.</p>
<p>Hope this helps!</p>
<p>-Jeremy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jermal</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-80</link>
		<dc:creator>jermal</dc:creator>
		<pubDate>Sat, 16 Feb 2008 11:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-80</guid>
		<description>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</description>
		<content:encoded><![CDATA[<p>great plug-in,</p>
<p>how can i easily change the search engine in the code? Which files do i need to change and with what program?</p>
<p>Also a &#8216; restore to google&#8217; package would be very good.<br />
Thanks,<br />
Jeroen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seven77</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-81</link>
		<dc:creator>seven77</dc:creator>
		<pubDate>Wed, 13 Feb 2008 08:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-81</guid>
		<description>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.</description>
		<content:encoded><![CDATA[<p>thanks a lot. This is just great! Would love to be able to do the multi search engine thingy that Firefox has&#8230;<br />
Anyaway would love to hear your views.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-82</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Wed, 13 Feb 2008 01:57:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-82</guid>
		<description>Assuming you only wanted to replace Yahoo! with (pick a search engine), it would be very easy to do (like &#60;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.</description>
		<content:encoded><![CDATA[<p>Assuming you only wanted to replace Yahoo! with (pick a search engine), it would be very easy to do (like &lt;5mins work most likely). If instead you wanted the ability to switch between engines, it would take a fair bit more work. I&#8217;ll look into it and then email you with info once I have time to figure it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seven77</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-84</link>
		<dc:creator>seven77</dc:creator>
		<pubDate>Mon, 11 Feb 2008 14:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-84</guid>
		<description>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</description>
		<content:encoded><![CDATA[<p>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<br />
engines - not looking for yahoo, myself. The tow websites are World of Warcraft related and while firefox used to offer to option,<br />
looks like Safari doesn&#8217;t&#8230;</p>
<p>Do not want to spam, but pls tell me if you could help me out. Email is gave is valid.</p>
<p>thanks a lot!<br />
ale</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-85</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 22 Jan 2008 18:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-85</guid>
		<description>@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.</description>
		<content:encoded><![CDATA[<p>@Alex:</p>
<p>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.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-83</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 22 Jan 2008 01:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-83</guid>
		<description>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.</description>
		<content:encoded><![CDATA[<p>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<br />
a regular user and under sudo. Safari was closed during install attempts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anime Girl</title>
		<link>http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-79</link>
		<dc:creator>Anime Girl</dc:creator>
		<pubDate>Fri, 11 Jan 2008 19:38:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeremyjohnstone.com/blog/archives/2007/12/26/yahoo-search-for-safari-plugin/#comment-79</guid>
		<description>This is fantastic.  I was wondering how I could get Yahoo search in Safari and now I can.

Cheers!</description>
		<content:encoded><![CDATA[<p>This is fantastic.  I was wondering how I could get Yahoo search in Safari and now I can.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
