<?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>MacLovin &#187; firefox</title>
	<atom:link href="http://www.maclovin.de/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maclovin.de</link>
	<description>An Apple a day keeps the Windows away</description>
	<lastBuildDate>Thu, 25 Feb 2010 20:57:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Add book price comparison to Amazon</title>
		<link>http://www.maclovin.de/2008/08/add-book-price-comparison-to-amazon/</link>
		<comments>http://www.maclovin.de/2008/08/add-book-price-comparison-to-amazon/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 21:27:02 +0000</pubDate>
		<dc:creator>Dennis</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.maclovin.de/?p=17</guid>
		<description><![CDATA[I wrote a small Greasemonkey-Script, that adds links to the most famous German book price comparisons to the Amazon website.

Greasemonkey is a Firefox-Addon providing the possibility to customize web-pages using Javascript and DOM. The script I wrote is based on the Amazon Linky script and performs the following tasks on every page at amazon (tested [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a small Greasemonkey-Script, that adds links to the most famous German book price comparisons to the Amazon website.</p>
<p style="text-align: center;"><a href="http://www.maclovin.de/wp-content/uploads/2008/08/buchpreis.png" rel="lightbox" title="Amazon bookprice comparison" rel="lightbox[17]"><img class="size-medium wp-image-27 aligncenter" title="Amazon bookprice comparison" src="http://www.maclovin.de/wp-content/uploads/2008/08/buchpreis-300x182.png" alt="" width="300" height="182" /></a></p>
<p><a title="Greasemonkey" href="http://www.greasespot.net/"><span id="more-17"></span>Greasemonkey</a> is a Firefox-Addon providing the possibility to customize web-pages using Javascript and DOM. The script I wrote is based on the <a title="Amazon Linky" href="http://userscripts.org/scripts/show/1058">Amazon Linky script</a> and performs the following tasks on every page at amazon (tested on amazon.de, but should work with other TLDs as well):</p>
<ol>
<li>Parse the page and try to find the ISBN number</li>
<li>Abort processing if none was found. That&#8217;s the case if you are not looking at product details but e.g. search results or the product shown is not a book.</li>
<li>Search for the tag at the position where links should be added (under the &#8220;used &amp; new&#8221; link)</li>
<li>Create the links to the search engines</li>
<li>Insert the new tags into the page</li>
</ol>
<p>Most of the steps should be quite self-explanatory when looking at the script&#8217;s source code. The most difficult part is setting up the URLs to the search engines. I got them by visiting the book price comparison and performing a search for the ISBN number of an arbitrary book. Then on the result page, I had a closer look at the address bar. If you&#8217;re lucky then the ISBN number entered appears somewhere in the URL. Just try to search for another book by exchanging the ISBN in the URL with another one. If that works (and it does most of the time), you&#8217;re ready to go.</p>
<p>Edit the script&#8217;s source and use one of the already existing engines as template. Paste your URL as href-attribute in it and adjust it to read the ISBN number from the variable &#8220;isbn&#8221;.</p>
<p><a href="http://www.maclovin.de/wp-content/uploads/2008/08/amazon_buchpreis.user.js">amazon_buchpreis.user.js</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maclovin.de/2008/08/add-book-price-comparison-to-amazon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
