<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>oh if you just want new tab, this should work:

&lt;pre&gt;// ==UserScript==
// @name           Gaia Online Link Rebuilder
// @namespace      #avg
// @description    Fixes links on gaia online
// @include        http://*gaiaonline.com/*
// ==/UserScript==
items=document.evaluate(&amp;quot;//div[contains(@id,'sell_')]&amp;quot;,document,null,6,null);
for(i=0;i&amp;lt;items.snapshotLength;i++)
	with(items.snapshotItem(i)) {
		var link=((getAttribute(&amp;quot;onclick&amp;quot;)||&amp;quot;null&amp;quot;).match(/'[^;]+/)||[&amp;quot;&amp;quot;])[0];
		setAttribute(&amp;quot;onclick&amp;quot;,&amp;quot;window.open(&amp;quot;+link+&amp;quot;)&amp;quot;);
	}&lt;/pre&gt;</body>
  <body-html>&lt;p&gt;oh if you just want new tab, this should work:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;// ==UserScript==
// @name           Gaia Online Link Rebuilder
// @namespace      #avg
// @description    Fixes links on gaia online
// @include        http://*gaiaonline.com/*
// ==/UserScript==
items=document.evaluate(&amp;quot;//div[contains(@id,'sell_')]&amp;quot;,document,null,6,null);
for(i=0;i&amp;lt;items.snapshotLength;i++)
	with(items.snapshotItem(i)) {
		var link=((getAttribute(&amp;quot;onclick&amp;quot;)||&amp;quot;null&amp;quot;).match(/'[^;]+/)||[&amp;quot;&amp;quot;])[0];
		setAttribute(&amp;quot;onclick&amp;quot;,&amp;quot;window.open(&amp;quot;+link+&amp;quot;)&amp;quot;);
	}&lt;/pre&gt;&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-10-30T22:36:31Z</created-at>
  <forumable-id type="integer">2</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">16935</id>
  <topic-id type="integer">9509</topic-id>
  <updated-at type="datetime">2008-10-30T22:36:31Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">61251</user-id>
</post>
