<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Personal Website of Tony DiLoreto &#187; IT</title>
	<atom:link href="http://www.tonydiloreto.com/category/it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tonydiloreto.com</link>
	<description>Perfecting imperfection daily...</description>
	<lastBuildDate>Sun, 27 Sep 2009 02:32:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ITPub Search :: Custom Firefox Search Plugin</title>
		<link>http://www.tonydiloreto.com/2009/06/itpub-search-custom-firefox-search-plugin/</link>
		<comments>http://www.tonydiloreto.com/2009/06/itpub-search-custom-firefox-search-plugin/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 14:41:21 +0000</pubDate>
		<dc:creator>Tony</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[ITPub]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.tonydiloreto.com/?p=23</guid>
		<description><![CDATA[I was searching around on ITPub, China&#8217;s most notorious IT-related website, and wanted an easy way to search for their books. Every time I go there I have to login, then go home, then search, then scan the results for my book, ALL IN CHINESE. I don&#8217;t know if you&#8217;re like me but, I hate [...]]]></description>
			<content:encoded><![CDATA[<p>I was searching around on ITPub, China&#8217;s most notorious IT-related website, and wanted an easy way to search for their books. Every time I go there I have to login, then go home, then search, then scan the results for my book, ALL IN CHINESE. I don&#8217;t know if you&#8217;re like me but, I hate trying to make sense of 26,000 Chinese letters, so I came up with a quick and dirty plug-in for Firefox to search ITPub.net very quickly.</p>
<p>Screenshot:</p>
<div id="attachment_25" class="wp-caption alignnone" style="width: 262px"><img class="size-full wp-image-25" title="ITPub.Net Custom Search Bar" src="http://www.tonydiloreto.com/wp-content/uploads/2009/06/itpub_search.jpg" alt="When finished your search bar should look like this." width="252" height="31" /><p class="wp-caption-text">When finished your search bar should look like this.</p></div>
<p><span id="more-23"></span>So after  a bit of Googling and hacking, I found an easy way to add a custom search into your Firefox search bar (next to the url). I even ghetto-rigged a favicon inside of it, even though it does no justice to the normal ITPub.net favicon (I wasn&#8217;t able to extract this from their website, even though their HTML source code is ONLY 50% Chinese).  Without further adieu, here are the steps necessary to make a custom Firefox search plugin for ITPub.net and begin finding your favorite IT-related books:</p>
<ol>
<li>Navigate to the <span style="text-decoration: underline;"><strong>C:\Program Files\Mozilla Firefox\searchplugins</strong></span> directory of your computer (assuming you are running Windows)</li>
<li>Copy and Paste ANY of the current search plugin files (.xml) and rename it to &#8220;itpub.xml&#8221;.</li>
<li>Open the newly created .xml file in Notepad (easiest) to prepare it for editing.</li>
<li>Delete everything inside of it (or read it, if you want to know what is going on). If you choose one like Google or Yahoo! (assuming you have both of them installed), you can also see how they do their type-ahead search feature based off the first few letters that you type in the search box.</li>
<li>Paste the <strong>exact</strong> code shown below, then save and close:<br />
<code><br />
&lt;SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/"&gt;<br />
&lt;ShortName&gt;IT Pub&lt;/ShortName&gt;<br />
&lt;Description&gt;ITPub.Net Search&lt;/Description&gt;<br />
&lt;InputEncoding&gt;UTF-8&lt;/InputEncoding&gt;<br />
&lt;Image width="16" height="16"&gt;data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAA<br />
AAAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAA<br />
gAAAAIAAAACAAABjgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACA<br />
AAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAACAAICAgACAgIAAgICAAICAgACAgIAAgICAAICAgACA<br />
gIAAgICAAICAgACAgIAAgIAAgAAAAIAAAACAAAAAgAAA3ADc3NwA3NzcANzc3ADc3NwA3NzcANzc<br />
3ADc3NwA3NzcANzc3ADc3NwA3NyAAICAAIAAAACAAAAAgAAAAIAAANwA3NzcANzc3ADc3NwA3NwA<br />
gAAAAIAAAACAAADcANzc3ADc3NwA3NzcANzcgACAgACAAAAAgAAAAIAAAACAAADcANzc3ADc3NwA<br />
3NyAAICAAIAAAACAAAAAgAAAAIAAANwA3NzcANzc3ADc3IAAgIAAgAAAAIAAAACAAAAAgAAA3ADc<br />
3NwA3NzcANzcgACAgACAAAAAgAAAAIAAAACAAADcANzc3ADc3NwA3NyAAICAAIAAAACAAAAAgAAA<br />
AIAAANwA3NzcANzc3ADc3ACAAAAAgAAAAIAAAACAAAAAgAAA3ADc3NwA3NzcANzcgACAgACAAAAA<br />
gAAAAIAAAACAAADcANzc3ADc3NwA3NwAgAAAAIAAAIAAgIAAgAAAAIAAANwA3NzcANzc3ADc3IAA<br />
gIAAgAAAAIAAAACAAAAAgAAAgACAgIAAgICAAICAAIAAAACAAADcANzcAIAAAACAAADcANzc3ADc<br />
3NwA3NyAAICAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAA3ADc3IAAgIAAgAAA<br />
AIAAANwA3NzcANzcgACAgACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAANwA3NyA<br />
AICAAIAAAACAAADcANzc3ADc3IAAgIAAgAAAAIAAAACAAAAAgAAA3ADc3NwA3NzcANzc3ADc3NwA<br />
3NzcANzcgACAgACAAAAAgAAA3ADc3NwA3NyAAICAAIAAAACAAAAAgAAAAIAAANwA3NzcANzc3ADc<br />
3NwA3NzcANzc3ADc3NwA3NwAgAAAAIAAANwA3NzcANzcgACAgACAAAAAgAAAAIAAAACAAAAAgAAA<br />
AIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAA<br />
gAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAIAAAACA<br />
AAAA//4AAP//AACABwAAgAcAAIcHAACHhwAAh4cAAI+HAACNhwAAjYcAAPzHAAD8xwAAgMcAAIDH<br />
AAD//wAA//8AAA==&lt;/Image&gt;<br />
&lt;Url type="text/html" method="GET" template="http://www.itpub.net/search.php"&gt;<br />
&lt;Param name="srchtxt" value="{searchTerms}"/&gt;<br />
&lt;Param name="orderby" value="lastpost"/&gt;<br />
&lt;Param name="ascdesc" value="desc"/&gt;<br />
&lt;Param name="searchsubmit" value="yes"/&gt;<br />
&lt;/Url&gt;<br />
&lt;SearchForm&gt;http://www.itpub.net/search.php&lt;/SearchForm&gt;<br />
&lt;/SearchPlugin&gt;<br />
</code></li>
<li>Save and close.</li>
</ol>
<p>That&#8217;s It! Now close and restart Firefox and check the Search bar and look for your newly created ITPub.net plugin. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonydiloreto.com/2009/06/itpub-search-custom-firefox-search-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
