Endless Forum Pages user script
The Endless Forum Pages user script makes phpBB forum pages infinitely long instead of limited to 15 posts per page. It loads the next page into a hidden iframe when you scroll to near the bottom of the page, and then it moves the posts from the iframe into the main page when the iframe finishes loading. If you hate clicking the tiny "Next" link on MozillaZine Forums topic pages (example) as much as I do, please try this script.
If you use this script, it is best to scroll using pgup/pgdn. If you scroll by dragging the scrollbar, your position will jump when the page gets longer.
Using this script shouldn't affect the load on forum servers much, because it only activates when you scroll to near the bottom of the page, which indicates that you're likely to continue reading.
This script works at MozillaZine Forums and The Blue Gryphon. You can try using it with other phpBB forums using Greasemonkey's "included pages" feature. Don't expect it to work at all phpBB forums, though, because phpBB forums are often customized a lot and the script is somewhat fragile.
August 29th, 2005 at 5:10 am
Can you make it work with the topic lists too?
August 29th, 2005 at 8:17 am
That’s just… ridiculously useful. I hate having to hit the little ‘next’ button, but I never would have thought about this solution. Very elegant. Thank you.
August 29th, 2005 at 9:47 am
It does not work at either forum using Greasemonkey 0.5.1.
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050828 Firefox/1.0+
Neither does Autolink, btw
August 29th, 2005 at 12:48 pm
WOW that’s a great script! It’s even 56k friendly as the iframe loads ‘in the background’, while you’re reading the last posts of the page.
GM 0.5.1
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050827 Firefox/1.0+
August 30th, 2005 at 8:54 am
Hey, could you do that for Google (particularly Image Search) results as well?
August 31st, 2005 at 12:17 am
[…] Endless forum script – A greasemonkey script to automatically load each next page on a phpBB forum and append it to the end of what your looking at. […]
August 31st, 2005 at 12:40 am
Cheers!
As I’m from a german speaking part of the world, I’ve extended the script somewhat to include the german version of the “Next” detection. If anybody else needs that (or you’d like to include it in your script), here’s the new version of the findNextLink (duplication of the if-clause in the for look):
function findNextLink(doc)
{
for (var link,i=0; link=doc.links[i]; ++i) {
if (link.innerHTML == “Next” && link.getAttribute(“href”).substr(0,10) == “viewtopic.”)
return link;
if (link.innerHTML == “Weiter” && link.getAttribute(“href”).substr(0,10) == “viewtopic.”)
return link;
}
return null;
}
Works For Me!
Oliver
September 2nd, 2005 at 10:24 am
It seems to break quickreply.
September 4th, 2005 at 4:24 pm
i’m using this on another forum system (SMF), and it only works when i REFRESH the page i’m viewing, when i’m going to it from a link (of the forum list or so) it dosnt work, and i have to hit F5, why is that?
September 6th, 2005 at 12:19 am
Alon, I’ve seen that too. I think it’s a bug in Greasemonkey.
September 6th, 2005 at 10:20 pm
Hi – big thanks (great site!).
September 9th, 2005 at 11:10 am
I’ve been wanting this for a long time.
I don’t find ‘user script’ in the Firefox help. How do I add this, into
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b4) Gecko/20050909 Firefox/1.4?
September 9th, 2005 at 11:17 am
Oops. Duh. Nevermind. I see it’s a script for Greasemonkey, which isn’t working with the 1.5 beta yet — and that there’s an updated 0.6.1 version available via a link on the mailing list. I’ll wait til it’s released as something I can install into the OSX Firefox.
September 13th, 2005 at 8:41 pm
Too bad greasemonkey isn’t updated to work with 1.5b1 or 1.6a1… as Hank said…
September 13th, 2005 at 8:44 pm
A version of Greasemonkey that works with Firefox 1.5 Beta 1 is available: http://greaseblog.blogspot.com/2005/09/firefox-15-compatible-greasemonkey.html
September 14th, 2005 at 9:29 pm
quote from me: “It seems to break quickreply.”
Jesse, I wasn’t really expecting a reply, but since you seem to keep reading this post, could you tell me if quickreply works for you? If no I could live with it or have a look at your script, if yes I’d investigate what’s wrong with my settings.
September 14th, 2005 at 9:50 pm
It breaks quickreply because of the invalid tag nesting in the original document. The original document tries to nest things as TABLE – FORM – TR – TD. Firefox’s DOM Inspector doesn’t even show the textarea as being a descendant of the form element in the original document! I can think of several ways to work around this, but none of them satisfy me yet.
I wonder why MozillaZine doesn’t just put the FORM outside that table. I don’t think that table “contains” any other forms.
September 14th, 2005 at 9:57 pm
Is quickreply a part of phpBB or is a custom MozillaZine feature?
September 15th, 2005 at 10:41 am
Thanks! It indeed makes sense to have the form enclosing the 3 table tags.
I think it’s an add-on, there’s a big handful of them on phpbbhacks.com