Unpaginate vbulletin topics

By gollum Last update Jul 6, 2008 — Installed 215 times.

Edited to unpaginate threads as well

in
Subscribe to Edited to unpaginate threads as well 2 posts, 2 voices



Peter Harkins Scriptwright

// ==UserScript==
// @name Unpaginate vbulletin topics and threads
// @namespace http://userscripts.org/users/35791/scripts
// @url http://userscripts.org/scripts/source/29666.use...
// @description Marks up vbulletin fora and sub-fora pages(forum topics) with the pagination microformat.
// @require http://ecmanaut.googlecode.com/svn/trunk/lib/gm...
// @require http://ecmanaut.googlecode.com/svn/trunk/lib/ad...
// @require http://ecmanaut.googlecode.com/svn/trunk/lib/gm...
// @include *
// ==/UserScript==

// This script produces the microformat consumed by Johan Sundström's -
// "Unpaginate pagination microformated web pages" -
// YOU NEED TO INSTALL THE FOLLOWING IF THIS SCRIPT IS TO DO ANYTHING USEFUL!!
// http://userscripts.org/scripts/source/23175.use...

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

if (document.getElementById("posts")) {
// unpaginate threads
var posts = 'id("posts")/div/div/div/div';
var next = '(//div[@class="pagenav"])[last()]/table/tbody/tr/td/a[.=">"]';
unpaginate(posts, next, '(//div[@class="pagenav"])[last()]/table');
}
}

 
Svein Daniel User
Firefox

Hi!

The last part of this works. It unpaginates the list of different threads.
But the first part doesn't work, it won't unpaginate the threads themselves, when I click on one of them.

Please help. The vBulletin version is 3.7.4 and the forum uses "pretty" urls (SEO friendly).

Kind regards
Svein Daniel

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel