- Fabled Legendary Member
Posted by: Iggyhopper
@Bapa: Source Code - DO WANT!You might want to check out my post in the "Greasemonkeys" group -- a lot more is elaborated in my one thread there. And how I actually "steal" posts from other webpages is actually quite dastardly, but... it gets the job done (works in both Chrome, and Firefox). That's all that matter to me.
So do you use regex to search for the whole list of posts or what?I only use Regex in one part of my script (and that's for verifying, through the URL, if it's actually a thread page). I'm still learning Regex for JS, and when I get better at it, I'll apply it some moar.
I'm still thinking about how to actually display new posts. My current ideas are either:
* Preloading the next page, and (possibly "fading-in") the next 25 posts when you hit the bottom, or near the bottom of the page.
* Preloading the next page, but instead, loading-in one post at a time as you scroll down.
* Preloading the next page, and having the user double-click something (possibly anywhere on the page) to make the next set appear.
There's some other technical hurdles I still have to figure out, though. Again, check out the "Greasemonkeys" group and find my thread if you're interested.
Oh, as a precaution, you can find the number of pages because it has a link to the last page, so just find that element, get the innerHTML, convert it to a number, and check it.
And yeah, I've already found a way to get the number of pages a thread has, so that's taken care of.
If this works-out as I intend it to, this can be very, very handy for some of those smaller threads -- and if I can figure out how to do it, it can be possible to view an entire thread all on the same page, and have extra replies given to you as they become available. Again, that'd be my goal. Not sure if I can achieve it, but I'll try.
Anyway, until (or if) I hit my next milestone, this is all just semi-theoretical stuff xD
[Edited on 06.14.2009 8:59 PM PDT]