<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>// ==UserScript==
// @name         Unpaginate vbulletin topics and threads
// @namespace    http://userscripts.org/users/35791/scripts
// @url          http://userscripts.org/scripts/source/29666.user.js
// @description  Marks up vbulletin fora and sub-fora pages(forum topics) with the pagination microformat.
// @require      http://ecmanaut.googlecode.com/svn/trunk/lib/gm/$x$X.js
// @require      http://ecmanaut.googlecode.com/svn/trunk/lib/addmetainfo.js
// @require      http://ecmanaut.googlecode.com/svn/trunk/lib/gm/unpaginate.js
// @include      *
// ==/UserScript==

// This script produces the microformat consumed by Johan Sundstr&#246;m's - 
//    &quot;Unpaginate pagination microformated web pages&quot; -
// YOU NEED TO INSTALL THE FOLLOWING IF THIS SCRIPT IS TO DO ANYTHING USEFUL!!
// http://userscripts.org/scripts/source/23175.user.js

var vb = document.getElementsByName(&quot;generator&quot;);
if (vb.length &gt; 0 &amp;&amp; vb[0].content.match(/^vBulletin/i)) {
  if (document.getElementById(&quot;threadslist&quot;)) {
    // unpaginate topics
    var posts = '(id(&quot;threadslist&quot;)/tbody)[last()]/tr[not(child::td[@class=&quot;sticky&quot;]) and not(child::td[@class=&quot;thead&quot;])]';
    var next = '(//div[@class=&quot;pagenav&quot;])[last()]/table/tbody/tr/td/a[.=&quot;&gt;&quot;]';
    unpaginate(posts, next, '(//div[@class=&quot;pagenav&quot;])[last()]/table');
  } 

  if (document.getElementById(&quot;posts&quot;)) {
    // unpaginate threads
    var posts = 'id(&quot;posts&quot;)/div/div/div/div';
    var next = '(//div[@class=&quot;pagenav&quot;])[last()]/table/tbody/tr/td/a[.=&quot;&gt;&quot;]';
    unpaginate(posts, next, '(//div[@class=&quot;pagenav&quot;])[last()]/table');
  }
}</body>
  <body-html>&lt;p&gt;// ==UserScript==
&lt;br /&gt;// @name         Unpaginate vbulletin topics and threads
&lt;br /&gt;// @namespace    &lt;a href=&quot;http://userscripts.org/users/35791/scripts&quot;&gt;http://userscripts.org/users/35791/scripts&lt;/a&gt;
&lt;br /&gt;// @url          &lt;a href=&quot;http://userscripts.org/scripts/source/29666.user.js&quot;&gt;http://userscripts.org/scripts/source/29666.use...&lt;/a&gt;
&lt;br /&gt;// @description  Marks up vbulletin fora and sub-fora pages(forum topics) with the pagination microformat.
&lt;br /&gt;// @require      &lt;a href=&quot;http://ecmanaut.googlecode.com/svn/trunk/lib/gm/$x$X.js&quot;&gt;http://ecmanaut.googlecode.com/svn/trunk/lib/gm...&lt;/a&gt;
&lt;br /&gt;// @require      &lt;a href=&quot;http://ecmanaut.googlecode.com/svn/trunk/lib/addmetainfo.js&quot;&gt;http://ecmanaut.googlecode.com/svn/trunk/lib/ad...&lt;/a&gt;
&lt;br /&gt;// @require      &lt;a href=&quot;http://ecmanaut.googlecode.com/svn/trunk/lib/gm/unpaginate.js&quot;&gt;http://ecmanaut.googlecode.com/svn/trunk/lib/gm...&lt;/a&gt;
&lt;br /&gt;// @include      *
&lt;br /&gt;// ==/UserScript==&lt;/p&gt;

&lt;p&gt;// This script produces the microformat consumed by Johan Sundstr&#246;m's - 
&lt;br /&gt;//    &quot;Unpaginate pagination microformated web pages&quot; -
&lt;br /&gt;// YOU NEED TO INSTALL THE FOLLOWING IF THIS SCRIPT IS TO DO ANYTHING USEFUL!!
&lt;br /&gt;// &lt;a href=&quot;http://userscripts.org/scripts/source/23175.user.js&quot;&gt;http://userscripts.org/scripts/source/23175.use...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;var vb = document.getElementsByName(&quot;generator&quot;);
&lt;br /&gt;if (vb.length &gt; 0 &amp;amp;&amp;amp; vb[0].content.match(/^vBulletin/i)) {
&lt;br /&gt;  if (document.getElementById(&quot;threadslist&quot;)) {
&lt;br /&gt;    // unpaginate topics
&lt;br /&gt;    var posts = '(id(&quot;threadslist&quot;)/tbody)[last()]/tr[not(child::td[@class=&quot;sticky&quot;]) and not(child::td[@class=&quot;thead&quot;])]';
&lt;br /&gt;    var next = '(//div[@class=&quot;pagenav&quot;])[last()]/table/tbody/tr/td/a[.=&quot;&gt;&quot;]';
&lt;br /&gt;    unpaginate(posts, next, '(//div[@class=&quot;pagenav&quot;])[last()]/table');
&lt;br /&gt;  } &lt;/p&gt;

&lt;p&gt;  if (document.getElementById(&quot;posts&quot;)) {
&lt;br /&gt;    // unpaginate threads
&lt;br /&gt;    var posts = 'id(&quot;posts&quot;)/div/div/div/div';
&lt;br /&gt;    var next = '(//div[@class=&quot;pagenav&quot;])[last()]/table/tbody/tr/td/a[.=&quot;&gt;&quot;]';
&lt;br /&gt;    unpaginate(posts, next, '(//div[@class=&quot;pagenav&quot;])[last()]/table');
&lt;br /&gt;  }
&lt;br /&gt;}&lt;/p&gt;</body-html>
  <created-at type="datetime">2009-05-28T01:48:19Z</created-at>
  <forumable-id type="integer">29666</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">126526</id>
  <topic-id type="integer">27731</topic-id>
  <updated-at type="datetime">2009-05-28T01:48:19Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">74939</user-id>
</post>
