<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Reading your request again I think this might be closer to what you wanted?

&lt;a href=&quot;http://userscripts.org/scripts/show/22979&quot;&gt;vB New Topics in Tabs&lt;/a&gt;

&lt;pre&gt;// ==UserScript==
// @name           vB New Topics
// @namespace      http://userscripts.org/forums/2/topics/1801
// @description    Open all forum new topics in tabs
// @include        http://forums.e-mpire.com/forumdisplay.php*
// ==/UserScript==

var newposts = new Array();
var lnks = document.getElementById('threadslist').getElementsByTagName('a');
for (var i=0; i &lt; lnks.length; i++) {
  if (/showthread.php\?goto=newpost/.test(lnks[i].href)) {
    newposts.push(lnks[i].href);
  }
}

// DON'T DISPLAY IF NO NEW POSTS IN FORUM
if (!newposts.length) return;
var btn = document.getElementById('inlinemodform').getElementsByTagName('td')[0].appendChild(document.createElement('button'));
btn.innerHTML = &quot;Read ALL new posts&quot;;
btn.style.marginLeft = '10px';
btn.style.position = 'relative';
btn.style.top = '-5px';
btn.addEventListener(&quot;click&quot;,
  function(e) {
    for (var i=0; i &lt; newposts.length; i++) {
      GM_openInTab(newposts[i]);
      e.preventDefault();
    }
  }
, false);
&lt;/pre&gt;</body>
  <body-html>&lt;p&gt;Reading your request again I think this might be closer to what you wanted?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://userscripts.org/scripts/show/22979&quot;&gt;vB New Topics in Tabs&lt;/a&gt;&lt;pre&gt;// ==UserScript==
// @name           vB New Topics
// @namespace      http://userscripts.org/forums/2/topics/1801
// @description    Open all forum new topics in tabs
// @include        http://forums.e-mpire.com/forumdisplay.php*
// ==/UserScript==

var newposts = new Array();
var lnks = document.getElementById('threadslist').getElementsByTagName('a');
for (var i=0; i &amp;lt; lnks.length; i++) {
  if (/showthread.php\?goto=newpost/.test(lnks[i].href)) {
    newposts.push(lnks[i].href);
  }
}

// DON'T DISPLAY IF NO NEW POSTS IN FORUM
if (!newposts.length) return;
var btn = document.getElementById('inlinemodform').getElementsByTagName('td')[0].appendChild(document.createElement('button'));
btn.innerHTML = &quot;Read ALL new posts&quot;;
btn.style.marginLeft = '10px';
btn.style.position = 'relative';
btn.style.top = '-5px';
btn.addEventListener(&quot;click&quot;,
  function(e) {
    for (var i=0; i &amp;lt; newposts.length; i++) {
      GM_openInTab(newposts[i]);
      e.preventDefault();
    }
  }
, false);
&lt;/pre&gt;&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-02-18T10:36:17Z</created-at>
  <forumable-id type="integer">2</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">6791</id>
  <topic-id type="integer">1801</topic-id>
  <updated-at type="datetime">2008-02-21T01:22:15Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">35791</user-id>
</post>
