つうことでAutopagerize + LDRizeが目を覚ました

autopagerize version 0.0.21 で bugfix されているのでもうこの内容はお役ごめんです。

あっちは、たぶんpatch間違っているとおもう。正解はコッチ。

autopagerize version: 0.0.19 にこのpatchあてた。

--- autopagerize.user.orig.js	Tue Jan 08 16:33:15 2008
+++ autopagerize.user.js	Tue Jan 08 16:57:12 2008
@@ -257,7 +257,7 @@
         return
     }
     this.loadedURLs[this.requestURL] = true
-    this.addPage(htmlDoc, page)
+    page = this.addPage(htmlDoc, page)
     AutoPager.apply_filters(page)
     this.requestURL = url
     this.showLoading(false)
@@ -274,9 +274,10 @@
     this.insertPoint.parentNode.insertBefore(p, this.insertPoint)
     p.innerHTML = 'page: <a class="autopagerize_link" href="' +
         this.requestURL + '">' + (++this.pageNum) + '</a>'
-    page.forEach(function(i) {
+    return page.map(function(i) {
         var pe = document.importNode(i, true)
         self.insertPoint.parentNode.insertBefore(pe, self.insertPoint)
+        return pe
     })
 }

自信はない。なにやっているか全然わかんないから。でも、つうことでAutopagerize + LDRizeが目を覚ました!