<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Short Amazon affiliate links &#8211; a bookmarklet</title>
	<atom:link href="http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:07:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Mr Rent a Site</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-80612</link>
		<dc:creator>Mr Rent a Site</dc:creator>
		<pubDate>Wed, 14 Dec 2011 10:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-80612</guid>
		<description>So what&#039;s the latest...

Is there an Amzn update for this?

Do people still get the credit for the sale using your tool?

I see this was created 2 years ago... anyone test this recently?</description>
		<content:encoded><![CDATA[<p>So what&#8217;s the latest&#8230;</p>
<p>Is there an Amzn update for this?</p>
<p>Do people still get the credit for the sale using your tool?</p>
<p>I see this was created 2 years ago&#8230; anyone test this recently?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phaans</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-80442</link>
		<dc:creator>phaans</dc:creator>
		<pubDate>Wed, 30 Nov 2011 06:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-80442</guid>
		<description>thanks, this is very useful information</description>
		<content:encoded><![CDATA[<p>thanks, this is very useful information</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe McCarthy</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-78748</link>
		<dc:creator>Joe McCarthy</dc:creator>
		<pubDate>Thu, 29 Sep 2011 18:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-78748</guid>
		<description>Oops, forgot to include the &quot;value&quot; method from the original code. That substitution should have read:

document.getElementById(‘ASIN’).baseURI

for

‘http://www.amazon.com/dp/‘ + document.getElementById(‘ASIN’).value</description>
		<content:encoded><![CDATA[<p>Oops, forgot to include the &#8220;value&#8221; method from the original code. That substitution should have read:</p>
<p>document.getElementById(‘ASIN’).baseURI</p>
<p>for</p>
<p>‘http://www.amazon.com/dp/‘ + document.getElementById(‘ASIN’).value</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe McCarthy</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-78747</link>
		<dc:creator>Joe McCarthy</dc:creator>
		<pubDate>Thu, 29 Sep 2011 18:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-78747</guid>
		<description>I hate the complex URIs generated for Amazon Associates by the Amazon scripts, so this simplified version is very helpful.

You mentioned the longer-form base URI that includes a hyphenated version of the product title, which is an aspect I always like to include in the links I embed in my blog posts. 

I&#039;ve never written any Javascript before, but a little browsing around and using the Firefox Web Console, I believe the following variation on the script you provide, substituting

document.getElementById(&#039;ASIN&#039;).baseURI

for

&#039;http://www.amazon.com/dp/&#039; + document.getElementById(&#039;ASIN&#039;)

should do the trick.

Here&#039;s the complete JavaScript bookmarklet, modified from the Amazon aff bookmarklet code you provide above:

javascript:(function(){var%20aff%20=%20&#039;w3clubs-20&#039;;%20if%20(!document.getElementById(&#039;ASIN&#039;))%20{alert(&#039;Can\&#039;t%20find%20the%20product%20ID&#039;);%20return;}%20prompt(&#039;here%20is%20the%20link:&#039;,document.getElementById(&#039;ASIN&#039;).baseURI%20+%20&#039;/?tag=&#039;%20+%20aff);})()</description>
		<content:encoded><![CDATA[<p>I hate the complex URIs generated for Amazon Associates by the Amazon scripts, so this simplified version is very helpful.</p>
<p>You mentioned the longer-form base URI that includes a hyphenated version of the product title, which is an aspect I always like to include in the links I embed in my blog posts. </p>
<p>I&#8217;ve never written any Javascript before, but a little browsing around and using the Firefox Web Console, I believe the following variation on the script you provide, substituting</p>
<p>document.getElementById(&#8216;ASIN&#8217;).baseURI</p>
<p>for</p>
<p>&#8216;<a href="http://www.amazon.com/dp/" rel="nofollow">http://www.amazon.com/dp/</a>&#8216; + document.getElementById(&#8216;ASIN&#8217;)</p>
<p>should do the trick.</p>
<p>Here&#8217;s the complete JavaScript bookmarklet, modified from the Amazon aff bookmarklet code you provide above:</p>
<p>javascript:(function(){var%20aff%20=%20&#8242;w3clubs-20&#8242;;%20if%20(!document.getElementById(&#8216;ASIN&#8217;))%20{alert(&#8216;Can\&#8217;t%20find%20the%20product%20ID&#8217;);%20return;}%20prompt(&#8216;here%20is%20the%20link:&#8217;,document.getElementById(&#8216;ASIN&#8217;).baseURI%20+%20&#8242;/?tag=&#8217;%20+%20aff);})()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: how get your ex girlfriend back</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-78500</link>
		<dc:creator>how get your ex girlfriend back</dc:creator>
		<pubDate>Mon, 22 Aug 2011 18:22:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-78500</guid>
		<description>It is actually a great and useful piece of information. I am happy that you simply shared this helpful info with us. Please keep us up to date like this. Thank you for sharing.</description>
		<content:encoded><![CDATA[<p>It is actually a great and useful piece of information. I am happy that you simply shared this helpful info with us. Please keep us up to date like this. Thank you for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThisIsWhyImBroke</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-78087</link>
		<dc:creator>ThisIsWhyImBroke</dc:creator>
		<pubDate>Wed, 29 Jun 2011 20:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-78087</guid>
		<description>Thank you for this tool! I am updating all my old extremely long affiliate links now!</description>
		<content:encoded><![CDATA[<p>Thank you for this tool! I am updating all my old extremely long affiliate links now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunil Manheri</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-77820</link>
		<dc:creator>Sunil Manheri</dc:creator>
		<pubDate>Tue, 07 Jun 2011 17:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-77820</guid>
		<description>Nice tool! I was planning to implement similar tool to generate affiliate link. Thanks.</description>
		<content:encoded><![CDATA[<p>Nice tool! I was planning to implement similar tool to generate affiliate link. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: affiliated computer services</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-77792</link>
		<dc:creator>affiliated computer services</dc:creator>
		<pubDate>Sun, 29 May 2011 20:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-77792</guid>
		<description>I have to acknowledge this is actually 1 excellent understanding. This certainly provides organization the chance to obtain within on the floor ground as well as truly be a part of making some thing unique as well as customized for their requirements.</description>
		<content:encoded><![CDATA[<p>I have to acknowledge this is actually 1 excellent understanding. This certainly provides organization the chance to obtain within on the floor ground as well as truly be a part of making some thing unique as well as customized for their requirements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KLS</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-76248</link>
		<dc:creator>KLS</dc:creator>
		<pubDate>Wed, 09 Mar 2011 06:37:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-76248</guid>
		<description>Hi Stoyan,

Thanks for the bookmarklet, its really useful.

However, by any chance you&#039;ll do an update of a shorter url since amzn.com now works, perhaps an automated script to churn it out would be great? Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Stoyan,</p>
<p>Thanks for the bookmarklet, its really useful.</p>
<p>However, by any chance you&#8217;ll do an update of a shorter url since amzn.com now works, perhaps an automated script to churn it out would be great? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Megan Brennek</title>
		<link>http://www.phpied.com/short-amazon-affiliate-links-a-bookmarklet/#comment-76203</link>
		<dc:creator>Megan Brennek</dc:creator>
		<pubDate>Tue, 08 Mar 2011 20:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/?p=486#comment-76203</guid>
		<description>Can you tell me how to install this for Google Chrome?</description>
		<content:encoded><![CDATA[<p>Can you tell me how to install this for Google Chrome?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

