Archived Comments (locked)

in
Subscribe to Archived Comments 15 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Johan Sundström Script's Author

In part for not knowing about the other one (my search skills also wouldn't have figured out that Autopagerize removed rather than added paging, though) but first and foremost, this was an experimentative study I had been brewing on for a while, in writing generic cooperating user scripts that meet one another over a micro format (stigmergy), augmenting the microformat in different ways.

This key bindings script augments the same microformat as the unpaginator, but in a different way: instead of pulling in next page's items into this page, it adds keyboard bindings to scroll to the next item on the current page, so you can move up and down the item list by pressing m / p (rather arbitrarily picked, to sit well with how I read online comics, which uses j, k, l and n for related purposes implemented by same script and another), over and over again.

As you'll note, the two scripts run independent of one another, so if you install both, you get both features -- infinite scrolling and keyboard navigation of the items, even to new items that get added as you tap your way through them.

The main beauty of all of it is that all three (or more) parts can be maintained, developed, improved, added or removed independently of one another: any scriptwright can add a new site to the system, without communicating with me or anyone else, anyone that has a use for the properties these microformat consumers use can make new scripts using them for whichever purposes, and you don't have to opt in to all features making use of the data, only those you like.

(Based on the data items Autopageresize adds, it does not do precision cutting of only the item nodes from the pages it unpaginates, as my variant does, but if all one wants is something to undo pagination that system might be the better pick, given its large user base.)

 
Paul Irish Scriptwright

Johan,

Been a fan of your scripts and blog for a long while..
But I must ask: Why reinvent this wheel?

Autopagerize (http://userscripts.org/scripts/show/8551) has been doing this for a long time, and has a great collaborative filtering setup already defined.. (And arguably its a cleaner and more efficient system than individual scripts for each site)

Is there a reason Unpaginate was made a separate effort?

 
Johan Sundström Script's Author

Fun, isn't it? :-)

 
gollum Scriptwright

Also - couldn't help myself - one for 'userscripts.org/scripts' http://userscripts.org/scripts/show/28968

 
gollum Scriptwright
Hi Johan, have created a producer for phpbbV2 sites - at least it works on http://www.ibdof.com/viewtopic.php?t=650

Unpaginate phpbbV2 threads

 
Johan Sundström Script's Author

Aquilax: if you haven't already, feel free to copy and edit this script to do what you like. You won't have to change the microformat producers, and if you want your custom behavious only on a few sites, you can regulate that with the @include and @exclude patterns. Good luck!

 
Aquilax Scriptwright

Hi Sundström, I was thinking that it would be nice to have an "event" to change each result in the page. What I'm trying to say is that it would be useful to have a way to register a function that will be called for all the original results in the page and for all the new added results.
I'm using the Pagerization script and I find very nice how it change the results on the google.com/images.
I'm using your script to unpaginate some photo albums and with such a function I would be able to add a mouseover event and show the picture in a float div and not have to load them each time in separate page to look at them.

 
Aquilax Scriptwright

OK, it was my fault, I removed the "pagination-container" and now it works fine. Great work. But I think that it has some problem to detect the scroll to the end of the page, sometimes I have to scroll twice o three time before it load the next page.

 
Aquilax Scriptwright

Ok I've "cloned" the "OkCupid journals" scripts, it works, but instead of append the next page it replace the actual page. The layout of the page is a table with 4 rows and each rows has 4 cells, for a total of 16 pictures per page.
I set the "pagination-container" to the table body of the table and the "items-xpath" to the table rows.
The results is that each 4 seconds it loads the next page and replaces the content of the table body with that of the next page instead of adding it at the bottom of it.

 
Aquilax Scriptwright

Uhm I'm danger adverse, some times, I have a lot of micro scripts that I have done only for myself and I don't think that they would be interesting for any one else so I never uploaded them on userscripts.org. One of them would have used your microformated script, I wanted to add the "endless page" effect to a pictures collection page. I tried to copy your yahoo script but it didn't work, which is the only one script that works with GM 0.7? So I can copy that script and try to adapt it.

 
Johan Sundström Script's Author

My remotely hosted version (small link below the install link) is 0.8 only, though, but sports a live editor for microformat producers, for advanced xpath wranglers, which you activate by running the bookmarklet javascript:void(craft()) (be sure to be logged in on userscripts.org too, or I assume their token verification for uploading scripts will fail).

(You also might want to change namespace from what I put in mine before you post.)

 
Johan Sundström Script's Author

The version installable here works without 0.8, but all but one of its microformat producers (that I've made, that is) don't.

<Beware!>

The development build I run at the moment is here, but it is potentially dangerous and untested in the large; it may quite possibly wipe your entire list of GM scripts, so be sure to backup if you consider running it (we have fixed/regressed that symptom three times already, so it could be there still, or again).

</Beware!>

(Also, I could be a shady guy linking a malware infested xpi; there are lots of good reasons to wait for a real 0.8 once available.)

 
Aquilax Scriptwright

Interesting but without greasemnkey 0.8 doesn't work. Where is possible to download and install the pre-release version?

 
Johan Sundström Script's Author

I wrote up a blog post about the technical stigmergy / ecology / microformat aspects of this script and its many companions that is probably of interest to fellow scriptwrights wanting to extend this hack to other sites or consume the same data it does. Click the "pagination microformat" tag on the right to find them all.

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