<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Hi Cody.

Thank you so much for this script. it very handy &amp; works like a charm.

I was trying to add a link to the detail page for each search result. But the result isn't favourable.
I'm only able to append it to the end, which looks weird.
What i'd like to is insert it between the download link &amp; the description link.

I'm unable to achieve this &amp; have given up after several attempts. I'd be glad if you could help me out here.
the following is what i have until now.

&lt;pre&gt;
var all_pt = document.evaluate(
		&quot;//a[contains(@href,'/get/')]&quot;,
		document,
		null,
		XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
		null);
for (var i = 0; i &lt; all_pt.snapshotLength; i++) {
		var el = all_pt.snapshotItem(i);
		var id = el.href.substr(el.href.lastIndexOf('/')+1);
		var imge = document.createElement('img');
		imge.src = &quot;/images/down.gif&quot;;
		imge.class = &quot;ti&quot;;
		imge.style.float = &quot;left&quot;;
		imge.style.margin = &quot;.3em&quot;;
		var ae = document.createElement('a');
		ae.href = &quot;/det/&quot; + id;
		ae.appendChild(imge);
		el.parentNode.appendChild(ae);
}&lt;/pre&gt;</body>
  <body-html>&lt;p&gt;Hi Cody.&lt;/p&gt;

&lt;p&gt;Thank you so much for this script. it very handy &amp;amp; works like a charm.&lt;/p&gt;

&lt;p&gt;I was trying to add a link to the detail page for each search result. But the result isn't favourable.
&lt;br /&gt;I'm only able to append it to the end, which looks weird.
&lt;br /&gt;What i'd like to is insert it between the download link &amp;amp; the description link.&lt;/p&gt;

&lt;p&gt;I'm unable to achieve this &amp;amp; have given up after several attempts. I'd be glad if you could help me out here.
&lt;br /&gt;the following is what i have until now.&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
var all_pt = document.evaluate(
		&quot;//a[contains(@href,'/get/')]&quot;,
		document,
		null,
		XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
		null);
for (var i = 0; i &amp;lt; all_pt.snapshotLength; i++) {
		var el = all_pt.snapshotItem(i);
		var id = el.href.substr(el.href.lastIndexOf('/')+1);
		var imge = document.createElement('img');
		imge.src = &quot;/images/down.gif&quot;;
		imge.class = &quot;ti&quot;;
		imge.style.float = &quot;left&quot;;
		imge.style.margin = &quot;.3em&quot;;
		var ae = document.createElement('a');
		ae.href = &quot;/det/&quot; + id;
		ae.appendChild(imge);
		el.parentNode.appendChild(ae);
}&lt;/pre&gt;&lt;/p&gt;</body-html>
  <created-at type="datetime">2009-01-29T09:22:01Z</created-at>
  <forumable-id type="integer">5978</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">92779</id>
  <topic-id type="integer">20969</topic-id>
  <updated-at type="datetime">2009-01-29T09:23:17Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">76855</user-id>
</post>
