■ AutoPagerize + Microformats
--- /Users/youpy/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/gm_scripts/autopagerize.user.js 2007-06-03 20:39:16.000000000 +0900
+++ /Users/youpy/Desktop/autopagerize.user.js 2007-06-03 20:28:22.000000000 +0900
@@ -48,6 +48,11 @@
},
*/
]
+ var MICROFORMAT = {
+ nextLink: 'auto_pagerize_next_link',
+ insertBefore: 'auto_pagerize_insert_before',
+ pageElement: 'auto_pagerize_page_element',
+ }
var AutoPager = function(info, state) {
this.pageNum = 1
@@ -296,6 +301,15 @@
continue
}
}
+
+ if(!ap && getFirstElementByXPath('//a[contains(@class, "' + MICROFORMAT.nextLink + '")]')) {
+ var info = {
+ nextLink: '//a[contains(@class, "' + MICROFORMAT.nextLink + '")]',
+ insertBefore: '//*[contains(@class, "' + MICROFORMAT.insertBefore + '")]',
+ pageElement: '//*[contains(@class, "' + MICROFORMAT.pageElement + '")]',
+ }
+ ap = new AutoPager(info, DEFAULT_STATE)
+ }
}
var clearCache = function() {
GM_setValue('cacheInfo', '')