forked from ywzhaiqi/userscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
super_preloaderplus_one.user.js
6969 lines (6622 loc) · 293 KB
/
super_preloaderplus_one.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(function() {
// ==UserScript==
// @name Super_preloaderPlus_one
// @namespace https://github.com/ywzhaiqi
// @description 预读+翻页..全加速你的浏览体验...
// @author ywzhaiqi && NLF(原作者)
// @version 6.5.0
// @homepageURL https://greasyfork.org/scripts/293-super-preloaderplus-one
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
// @include http*
// @exclude http*://mail.google.com/*
// @exclude http*://maps.google*
// @exclude http*://www.google.com/reader*
// @exclude http*://www.google.com/calendar*
// @exclude https://docs.google.com/*
// @exclude http*://app.yinxiang.com/*
// @exclude http*://www.dropbox.com/*
// @exclude http*://www.toodledo.com/*
// @exclude http://cloud.feedly.com/*
// @exclude http://weibo.com/*
// @exclude http://w.qq.com/*
// @exclude http://web2.qq.com/*
// @exclude http://openapi.qzone.qq.com/*
// @exclude http://*cloud.vip.xunlei.com/*
// @exclude http*://www.wumii.com/*
// @exclude http://pan.baidu.com/*
// @exclude http://yun.baidu.com/*
// @exclude http://www.cnbeta.com/*
// @exclude http://www.youku.com/
// @exclude http://v.youku.com/*
// @exclude http://www.iqiyi.com/*
// @exclude http://www.duokan.com/reader/*
// ==/UserScript==
// 主要用于 chrome 原生下检查更新,也可用于手动检查更新
var scriptInfo = {
version: '6.5.0',
updateTime: '2015/1/10',
homepageURL: 'https://greasyfork.org/scripts/293-super-preloaderplus-one',
downloadUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.user.js',
metaUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.meta.js',
};
//----------------------------------
// rule.js
if (window.name === 'mynovelreader-iframe') {
return;
}
// 如果是取出下一页使用的iframe window
if (window.name === 'superpreloader-iframe') { // 搜狗,iframe里面怎么不加载js啊?
// 去掉了原版的另一种方法,因为新版本 chrome 已经支持。旧版本 chrome iframe里面 无法访问window.parent,返回undefined
var domloaded = function (){ // 滚动到底部,针对,某些使用滚动事件加载图片的网站.
window.scroll(window.scrollX, 99999);
window.parent.postMessage('superpreloader-iframe:DOMLoaded', '*');
};
if(window.opera){
document.addEventListener('DOMContentLoaded', domloaded, false);
} else {
domloaded();
}
return;
}
// GM 兼容
gmCompatible();
/////////////////////设置(请注意开关的缩进关系..子开关一般在父开关为true的时候才会生效.)//////////////////////
var prefs={
floatWindow: true, // 显示悬浮窗
FW_position: 2, // 1:出现在左上角;2:出现在右上角;3:出现在右下角;4:出现在左下角;
FW_offset: [20, 38], // 偏离版边的垂直和水平方向的数值..(单位:像素)
FW_RAS: true, // 点击悬浮窗上的保存按钮..立即刷新页面;
pauseA: true, // 快速停止自动翻页(当前模式为翻页模式的时候生效.);
Pbutton: [2, 0, 0], // 需要按住的键.....0: 不按住任何键;1: shift鍵;2: ctrl鍵; 3: alt鍵;(同时按3个键.就填 1 2 3)(一个都不按.就填 0 0 0)
mouseA: true, // 按住鼠标左键..否则.双击;
Atimeout: 200, // 按住左键时..延时.多少生效..(单位:毫秒);
stop_ipage: true, // 如果在连续翻页过程中暂停.重新启用后.不在继续..连续翻页..
Aplus: true, // 自动翻页模式的时候..提前预读好一页..就是翻完第1页,立马预读第2页,翻完第2页,立马预读第3页..(大幅加快翻页快感-_-!!)(建议开启)..
sepP: true, // 翻页模式下.分隔符.在使用上滚一页或下滚一页的时候是否保持相对位置..
sepT: true, // 翻页模式下.分隔符.在使用上滚一页或下滚一页的时候使用动画过渡..
s_method: 3, // 动画方式 0-10 一种11种动画效果..自己试试吧
s_ease: 2, // 淡入淡出效果 0:淡入 1:淡出 2:淡入淡出
s_FPS: 60, // 帧速.(单位:帧/秒)
s_duration: 333, // 动画持续时长.(单位:毫秒);
someValue: '', // 显示在翻页导航最右边的一个小句子..-_-!!..Powered by Super_preloader 隐藏了
DisableI: true, // 只在顶层窗口加载JS..提升性能..如果开启了这项,那么DIExclude数组有效,里面的网页即使不在顶层窗口也会加载....
arrowKeyPage: true, // 允许使用 左右方向键 翻页..
sepStartN: 2, // 翻页导航上的,从几开始计数.(貌似有人在意这个,所以弄个开关出来,反正简单.-_-!!)
// 新增或修改的
forceTargetWindow: GM_getValue('forceTargetWindow', true), // 下一页的链接设置成在新标签页打开
debug: GM_getValue('debug', false),
enableHistory: GM_getValue('enableHistory', false), // 把下一页链接添加到历史记录
autoGetPreLink: false, // 一开始不自动查找上一页链接,改为调用时再查找
excludes: GM_getValue('excludes', ''),
custom_siteinfo: GM_getValue('custom_siteinfo', '[]'),
lazyImgSrc: 'zoomfile|file|original|load-src|_src|imgsrc|real_src|src2|data-lazyload-src|data-ks-lazyload|data-lazyload|data-src|data-original|data-thumb|data-imageurl|data-defer-src|data-placeholder',
};
// 黑名单,网站正则..
var blackList=[
// 例子
// 'http://*.douban.com/*',
];
blackList = blackList.concat(prefs.excludes.split(/[\n\r]+/).map(function(line) {
return line.trim();
}));
//在以下网站上允许在非顶层窗口上加载JS..比如猫扑之类的框架集网页.
var DIExclude = [
['猫扑帖子', true, /http:\/\/dzh\.mop\.com\/[a-z]{3,6}\/\d{8}\/.*\.shtml$/i],
['铁血社区', true, /^http:\/\/bbs\.tiexue\.net\/.*\.html$/i],
['铁血社区-2', true, /^http:\/\/bbs\.qichelian\.com\/bbsqcl\.php\?fid/i],
// 像 http://so.baiduyun.me/ 内嵌的百度、Google 框架
['百度网盘搜索引擎-百度', true, /^https?:\/\/www\.baidu\.com\/baidu/i],
['百度网盘搜索引擎-Google', true, /^https?:\/\/74\.125\.128\.147\/custom/i],
];
// 页面不刷新的站点
var HashchangeSites = [
{ url: /^https?:\/\/(www|encrypted)\.google(stable)?\..{2,9}\/(webhp|#|$|\?)/, timer: 2000, mutationSelector: '#main' },
// 运营商可能会在 #wd= 前面添加 ?tn=07084049_pg
{ url: /^https?:\/\/www\.baidu\.com\/($|#wd=)/, timer: 1000, mutationSelector: '#wrapper_wrapper' },
{ url: /^https?:\/\/www\.newsmth\.net/, timer: 1000 },
];
//////////////////////////---------------规则-------////////////////
//翻页所要的站点信息.
//高级规则的一些默认设置..如果你不知道是什么..请务必不要修改(删除)它.此修改会影响到所有高级规则...
var SITEINFO_D={
enable: true, // 启用
useiframe: GM_getValue('SITEINFO_D.useiframe') || false, // (预读)是否使用iframe..
viewcontent: false, // 查看预读的内容,显示在页面的最下方.
autopager: {
enable: true, // 启用自动翻页...
force_enable: GM_getValue('SITEINFO_D.autopager.force_enable') || false, //默认启用强制拼接
manualA: false, // 手动翻页.
useiframe: false, // (翻页)是否使用iframe..
iloaded: false, // 是否在iframe完全load后操作..否则在DOM完成后操作
itimeout: 0, // 延时多少毫秒后,在操作..
newIframe: false,
remain: 1, // 剩余页面的高度..是显示高度的 remain 倍开始翻页..
maxpage: 99, // 最多翻多少页..
ipages: [false, 2], // 立即翻页,第一项是控制是否在js加载的时候立即翻第二项(必须小于maxpage)的页数,比如[true,3].就是说JS加载后.立即翻3页.
separator: true, // 显示翻页导航..(推荐显示.)
separatorReal: true, // 显示真实的页数
}
};
//高优先级规则,第一个是教程.
var SITEINFO=[
{name: 'Google搜索', //站点名字...(可选)
url: '^https?://(?:(?:www|encrypted)\\.google(?:stable)?\\..{2,9}|wen\\.lu)/(?:webhp|search|#|$|\\?)', // 站点正则...(~~必须~~)
//url:'wildc;http://www.google.com.hk/search*',
siteExample:'http://www.google.com', //站点实例...(可选)
enable:true, //启用.(总开关)(可选)
useiframe:false, //是否用iframe预读...(可选)
viewcontent:false,
nextLink: 'id("pnnext") | id("navbar navcnt nav")//td[span]/following-sibling::td[1]/a | id("nn")/parent::a', //查看预读的内容,显示在页面的最下方.(可选)
// nextLink:'auto;',
//nextLink:'//table[@id="nav"]/descendant::a[last()][parent::td[@class="b"]]', //下一页链接 xpath 或者 CSS选择器 或者 函数返回值(此函数必须使用第一个传入的参数作为document对象) (~~必选~~)
//nextLink:'css;table#nav>tbody>tr>td.b:last-child>a',
//nextLink:function(D,W){return D.evaluate('//table[@id="nav"]/descendant::a[last()][parent::td[@class="b"]]',D,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;},
// 新增 Array 的格式,依次查找
// preLink:'auto;',
preLink: '//a[@id="pnprev"]',
//preLink:'//table[@id="nav"]/descendant::a[1][parent::td[@class="b"]]', //上一页链接 xpath 或者 CSS选择器 或者 函数返回值 (可选)
autopager:{
enable:true , //启用(自动翻页)(可选)
useiframe:false, //是否使用iframe翻页(可选)
iloaded:false, //是否在iframe完全load之后操作..否则在DOM完成后操作.
itimeout:0, //延时多少毫秒后,在操作..
newIframe: false, // 下一页使用新的 iframe,能解决按钮无法点击的问题
pageElement: '//div[@id="ires"]', //主体内容 xpath 或 CSS选择器 或函数返回值(~~必须~~)
// pageElement:'css;div#ires',
//pageElement:function(doc,win){return doc.getElementById('ires')},
//filter:'//li[@class="g"]', //(此项功能未完成)xpath 或 CSS选择器从匹配到的节点里面过滤掉符合的节点.
remain: 1/3, //剩余页面的高度..是显示高度的 remain 倍开始翻页(可选)
relatedObj: ['css;div#navcnt','bottom'], //以这个元素当做最底的元素,计算页面总高度的计算.(可选)
replaceE: '//div[@id="navcnt"]', //需要替换的部分 xpat h或 CSS选择器 一般是页面的本来的翻页导航(可选);
//replaceE:'css;div#navcnt',
ipages: [false,3], //立即翻页,第一项是控制是否在js加载的时候立即翻第二项(必须小于maxpage)的页数,比如[true,3].就是说JS加载后.立即翻3页.(可选)
separator: true, //是否显示翻页导航(可选)
separatorReal: true,
maxpage: 66, //最多翻页数量(可选)
manualA: false, //是否使用手动翻页.
HT_insert: ['//div[@id="res"]',2], //插入方式此项为一个数组: [节点xpath或CSS选择器,插入方式(1:插入到给定节点之前;2:附加到给定节点的里面;)](可选);
//HT_insert:['css;div#res',2],
lazyImgSrc: 'imgsrc',
// 新增的自定义样式。下面这个是调整 Google 下一页可能出现的图片排列问题。
stylish: 'hr.rgsep{display:none;}' +
'.rg_meta{display:none}.bili{display:inline-block;margin:0 6px 6px 0;overflow:hidden;position:relative;vertical-align:top}._HG{margin-bottom:2px;margin-right:2px}',
documentFilter: function(doc){
// 修正下一页的图片
var x = doc.evaluate('//script/text()[contains(self::text(), "data:image/")]', doc, null, 9, null).singleNodeValue;
if (x) {
try {
new Function('document, window, google', x.nodeValue)(doc, unsafeWindow, unsafeWindow.google);
} catch (e) {}
}
// 修正可能出现的 小箭头更多按钮 排版不正确的情况(2014-7-29)
var oClassName = window.document.querySelector('#ires .ab_button').className;
[].forEach.call(doc.querySelectorAll('#ires .ab_button'), function(elem){
if (elem.className != oClassName)
elem.className = oClassName;
});
},
filter: function() { // 在添加内容到页面后运行
},
startFilter: function(win, doc) { // 只作用一次
// 移除 Google 重定向
var script = doc.createElement('script');
script.type = 'text/javascript';
script.textContent = '\
Object.defineProperty(window, "rwt", {\
configurable: false,\
enumerable: true,\
get: function () {\
return function() {};\
},\
});\
';
doc.documentElement.appendChild(script);
doc.documentElement.removeChild(script);
// 移动相关搜索到第一页
var brs = doc.getElementById('brs'),
ins = doc.getElementById('ires');
if (brs && ins) {
ins.appendChild(brs);
}
}
}
},
{name: '百度搜索',
// 由于 Super_preloader 默认去掉了 # 后面部分
// url: "^https?://www\\.baidu\\.com/(s|baidu|#wd=)",
url: "^https?://www\\.baidu\\.com/",
enable:true,
nextLink:'//div[@id="page"]/a[contains(text(),"下一页")][@href]',
preLink:'//div[@id="page"]/a[contains(text(),"上一页")][@href]',
autopager: {
pageElement: 'css;div#content_left > *',
HT_insert:['css;div#content_left',2],
replaceE: 'css;#page',
stylish: '.autopagerize_page_info, div.sp-separator {margin-bottom: 10px !important;}',
startFilter: function(win) {
// 设置百度搜索类型为 s?wd=
try {
win.document.cookie = "ISSW=1";
} catch (ex) {}
}
}
},
{name: '百度搜索 - baidulocal',
url: '^https?://www\\.baidu\\.com/s.*&tn=baidulocal',
nextLink: '//a[font[text()="下一页"]]',
pageElement: '//table[@width="100%" and @border="0"]/tbody/tr/td/ol',
exampleUrl: 'http://www.baidu.com/s?wd=firefox&rsv_spt=1&issp=1&rsv_bp=0&ie=utf-8&tn=baidulocal&inputT=1364',
},
{name: '360搜索',
url: "http://www\\.so\\.com/s",
nextLink:'//div[@id="page"]/a[text()="下一页>"] | id("snext")',
autopager:{
pageElement:'//div[@id="container"]',
stylish: '.autopagerize_page_info, div.sp-separator { margin-bottom: 20px !important; }'
}
},
{name: '搜狗搜索',
url:/^https?:\/\/www\.sogou\.com\/(?:web|sogou)/i,
siteExample:'http://www.sogou.com',
enable:true,
nextLink:'//div[@id="pagebar_container"]/a[@id="sogou_next"]',
autopager:{
pageElement:'//div[@class="results"]',
replaceE: 'id("pagebar_container")'
}
},
{name: 'Bing网页搜索',
url:/bing\.com\/search\?q=/i,
siteExample:'bing.com/search?q=',
nextLink:'//nav[@aria-label="navigation"]/descendant::a[last()][@class="sb_pagN"]',
autopager:{
pageElement: '//ol[@id="b_results"]/li[@class="b_algo"]',
replaceE: '//nav[@aria-label="navigation"]'
}
},
{name: '有道网页搜索',
url: /http:\/\/www\.youdao\.com\/search\?/i,
siteExample: 'http://www.youdao.com/search?',
nextLink: '//div[@class="c-pages"]/a[text()="下一页"]',
autopager: {
pageElement: '//ol[@id="results"]',
replaceE: 'id("resc")/div[@class="c-pages"]'
}
},
{name: 'SoSo网页搜索',
url:/http:\/\/www\.soso\.com\/q/i,
siteExample:'http://www.soso.com/q',
nextLink:'//div[@class="pg"]/descendant::a[last()][@class="next"]',
autopager:{
// useiframe:true,
pageElement:'//div[@id="result"]/ol/li',
replaceE: 'id("pager")'
}
},
{name: 'Disconnect Search',
url: /^https?:\/\/search\.disconnect\.me\//i,
nextLink: 'auto;',
autopager: {
pageElement: 'id("results")',
replaceE: '//div[@class="pagination"]',
}
},
{name: 'AOL 搜索',
url: '^http://(www\\.)aolsearch.com/search\\?.+?[?&]q=',
siteExample: 'http://www.aolsearch.com/search?q=test',
nextLink: '//a[span[@class="nextRes"][text()="Next"]]',
autopager: {
pageElement: '//*[@id="c"]/div'
}
},
{name: '谷搜客',
url: /^https?:\/\/gusouk\.com\/search/i,
siteExample: 'http://gusouk.com/search?q=firefox',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="search_result"]'
}
},
{name: 'tmd123搜索', // www.tmd123.com
url: /^https?:\/\/54\.64\.24\.234\/search/i,
siteExample: 'http://54.64.24.234/search/?q=firefox',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="search_result"]'
}
},
{name: "Google custom",
url: /^https?:\/\/74\.125\.128\.147\/custom/i,
nextLink: 'id("pnnext") | id("navbar navcnt nav")//td[span]/following-sibling::td[1]/a | id("nn")/parent::a',
autopager: {
pageElement: '//div[@id="res"]',
}
},
// ====== 目前 Super_preloaderPlus_one 还有问题的 ========
{name: '水木社区',
url: '^http://www\\.newsmth\\.net/nForum',
nextLink: '//a[@title="下一页"]',
pageElement: '//div[@class="b-content"] | //div[@class="b-content corner"]',
exampleUrl: 'http://www.newsmth.net/nForum/#!board/TouHou'
},
// =============== baidu 其它 ===========
{name: '百度贴吧列表',
url: /^http:\/\/tieba\.baidu\.(cn|com)\/f/i,
nextLink: '//div[@class="pager clearfix"]/descendant::a[@class="next"]',
preLink: '//div[@class="pager clearfix"]/descendant::a[@class="pre"]',
autopager: {
enable: false,
pageElement: '//ul[@id="thread_list"]/li',
replaceE: 'css;#frs_list_pager',
useiframe: true,
// newIframe: true,
iloaded: true,
// lazyImgSrc: "bpic",
}
},
{name: '百度贴吧帖子',
url:/^http:\/\/tieba\.baidu\.com\/p/i,
siteExample:'http://tieba.baidu.com/p/918674650',
nextLink:'//ul[@class="l_posts_num"]/descendant::a[text()="下一页"]',
preLink:'//ul[@class="l_posts_num"]/descendant::a[text()="上一页"]',
autopager:{
enable: false,
pageElement: "id('j_p_postlist')", // "css;.l_post"
replaceE: "css;.l_posts_num > .l_pager",
useiframe: true,
// newIframe: true,
iloaded: true
// filter: function(pages){
// var pb = unsafeWindow.pb;
// pb.ForumListV3.initial();
// }
}
},
{name: '百度吧内搜索',
url: /^http:\/\/tieba\.baidu\.com\/f\/search/i,
siteExample: 'http://tieba.baidu.com/f/search/',
nextLink: 'auto;',
pageElement: 'css;.s_post'
},
{name: '百度新闻搜索',
url: '^http://news\\.baidu\\.(?:[^.]{2,3}\\.)?[^./]{2,3}/ns',
nextLink: 'id("page")/a[text()="下一页>"]',
pageElement: 'id("content_left")',
},
{name: '百度知道',
url:/^https?:\/\/zhidao\.baidu\.com\/search\?/i,
siteExample:'http://zhidao.baidu.com/search?pn=0&&rn=10&word=%BD%AD%C4%CFstyle',
nextLink:'auto;',
pageElement:'css;#wgt-list',
},
{name: '百度空间',
url: '^http://hi\\.baidu\\.com',
nextLink: 'id("pagerBar")/div/a[@class="next"]',
autopager: {
useiframe: true,
pageElement: '//div[@class="mod-realcontent mod-cs-contentblock"]',
},
exampleUrl: 'http://hi.baidu.com/gelida',
},
{name: '百度文库搜索',
url: /^http:\/\/wenku\.baidu\.com\/search\?/i,
exampleUrl: 'http://wenku.baidu.com/search?word=firefox&lm=0&od=0&fr=top_home',
nextLink: '//div[@class="page-content"]/a[@class="next"]',
autopager: {
pageElement: '//div[@class="search-result"]',
}
},
// ================ news、Reading ===========================
{name: '新浪新闻',
url: /^http:\/\/[a-z]+\.sina\.com\.cn\//i,
exampleUrl: 'http://news.sina.com.cn/c/sd/2013-11-08/165728658916.shtml',
nextLink: '//p[@class="page"]/a[text()="下一页"]',
autopager: {
pageElement: '//div[@id="artibody"]',
relatedObj: true,
}
},
{name: '搜狐新闻',
url: /^http:\/\/news\.sohu\.com\/.*\.shtml/i,
exampleUrl: 'http://news.sohu.com/20120901/n352071543.shtml',
nextLink: 'auto;',
autopager: {
pageElement: 'id("contentText")',
}
},
{name: '新华网新闻页面',
url:/http:\/\/news\.xinhuanet\.com\/.+\/\d+-/i,
siteExample:'http://news.xinhuanet.com/politics/2010-07/19/c_12347755.htm',
nextLink:'//div[@id="div_currpage"]/a[text()="下一页"]',
autopager:{
remain:2,
pageElement:'//table[@id="myTable"] | id("content")'
}
},
{name: '腾讯网-大成网,新闻',
url: /^http:\/\/[a-z]+\.qq\.com\/.*\.htm/i,
exampleUrl: 'http://cd.qq.com/a/20131119/002713.htm',
nextLink: 'id("ArtPLink")/ul/li/a[text()="下一页"]',
autopager: {
pageElement: 'id("Cnt-Main-Article-QQ")',
relatedObj: true,
replaceE: "css;#ArtPLink"
}
},
{name: '大成社区',
url: /^http:\/\/[a-z]+\.qq\.com\/(?:forum\.php|.*\.htm)/i,
exampleUrl: 'http://mycd.qq.com/forum.php?mod=forumdisplay&fid=1001037360&page=',
nextLink: '//div[@class="pgb"]/a[@class="nxt"]',
autopager: {
pageElement: 'id("threadlisttableid") | id("postlist") | id("threadlist")/table',
replaceE: 'css;.page_box .pgb',
lazyImgSrc: 'zoomfile'
}
},
{name: '中国新闻网',
url:/http:\/\/www\.chinanews\.com\/[a-z]+\/.+\.shtml/i,
siteExample:'http://www.chinanews.com/英文/年/日期/编号.shtml',
nextLink: '//div[@id="function_code_page"]/a[text()="下一页"]',
autopager:{
pageElement:'//div[@class="left_zw"] | //div[@class="hd_photo"]',
relatedObj: true,
HT_insert:['//div[@id="function_code_page"]',1],
filter:'//div[@id="function_code_page"]',
}
},
{name: '人民网新闻',
url: /^http:\/\/[a-z]+\.people\.com\.cn\/.*\.html/i,
exampleUrl: 'http://ent.people.com.cn/n/2013/0823/c1012-22672732-2.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="text_img"] | //div[@id="p_content"]',
relatedObj: true
}
},
{name: '中关村在线新闻页面',
url:/http:\/\/(?:[^\.]+\.)?zol\.com\.cn\/\d+\/\d+/i,
siteExample:'http://lcd.zol.com.cn/187/1875145.html',
nextLink: '//div[@class="page"]/a[text()="下一页"]',
autopager:{
pageElement:'//div[@id="cotent_idd" or @id="article-content"]',
relatedObj: true,
replaceE: 'css;.page'
}
},
{name: 'FT中文网',
url: /^http:\/\/www\.ftchinese\.com\/story\//i,
exampleUrl: 'http://www.ftchinese.com/story/001053472',
nextLink: '//div[@class="pagination"]/a[text()="余下全文"]',
autopager: {
pageElement: '//div[@id="bodytext"]',
relatedObj: true,
replaceE: '//div[@class="pagination"]'
}
},
{name: 'Solidot: 奇客的资讯,重要的东西',
url: /^http:\/\/www\.solidot\.org\//i,
exampleUrl: 'http://www.solidot.org/?issue=20131205',
nextLink: 'id("center")/div[@class="page"]/a[last()]',
autopager: {
pageElement: 'id("center")/div[@class="block_m"]',
separatorReal: false
}
},
{name: 'IT 之家',
url: /^http:\/\/\w+\.ithome\.com\//i,
nextLink: 'id("Pager")/div[@class="pagenew"]/a[text()=">"]',
autopager: {
pageElement: 'id("wrapper")/div[@class="content fl"]/div[@class="cate_list" or @class="post_list"]/ul[@class="ulcl"]',
replaceE: 'id("Pager")/div[@class="pagenew"]'
}
},
{name: '虎嗅网',
url: "^http://www\\.huxiu\\.com/",
nextLink: '//span[@class="next"]/a[text()=">"]',
pageElement: '//div[@class="center-ctr-box"]'
},
{name: '36氪',
url: "^http://www\\.36kr\\.com/.+",
nextLink: '//a[@rel="next"]',
pageElement: 'id("mainContainer")/descendant::div[contains(concat(" ", @class, ""),"krContent")]'
},
{name: '爱范儿 · Beats of Bits - 发现创新价值的科技媒体',
url: "^http://www\\.ifanr\\.com/",
nextLink: '//div[@class="content-nav"]/a[text()="下一页"]',
pageElement: 'id("content")/div[contains(concat(" ", @class, ""), "main")]'
},
{name: '创业帮',
url: /^http:\/\/www\.cyzone\.cn\//i,
exampleUrl: 'http://www.cyzone.cn/',
nextLink: 'id("pages")/*[@class="current"]/following-sibling::a[1]',
autopager: {
pageElement: '//div[@class="left"]/div[starts-with(@class, "intere")]/ul[@class="list clearfix"]',
}
},
{name: '萝卜网',
url: /^http:\/\/luo\.bo\//i,
exampleUrl: 'http://luo.bo/',
nextLink: '//div[@class="pagenavi"]/a[text()="下一页"]',
autopager: {
pageElement: '//div[@class="homeposts"]/ul[contains(@class, "explist homelist")] | //div[@class="container"]/div[@class="content"]',
replaceE: '//div[@class="pagenavi"]'
}
},
{name: '爱活网 Evolife.cn_科技进化生活',
url: /^http:\/\/[a-z]+\.evolife\.cn\//i,
exampleUrl: 'http://go.evolife.cn/category/focus_121_1.html',
nextLink: '//div[contains(@class, "pages")]/a[text()="下一页" or contains(text(), ">")]',
autopager: {
pageElement: '//div[@class="zuijingengxin"]/div[@class="zuijingengxin_box"] | //div[@class="zuijingengxin"]/div[@class="text"]',
replaceE: 'css;.pages',
relatedObj: true,
}
},
{name: '凤凰网 - 凤凰汽车',
url: /^http:\/\/auto\.ifeng\.com\/.*\.shtml/i,
exampleUrl: 'http://auto.ifeng.com/youji/20131115/1003513.shtml',
nextLink: '//div[@class="arl-pages"]/a[@class="next"]',
autopager: {
pageElement: '//div[starts-with(@class,"arl-mian")]/div/div[@class="arl-cont"]',
relatedObj: true,
replaceE: '//div[@class="arl-pages"]'
}
},
{name: '凤凰网 - 新闻、财经',
url: /^http:\/\/\w+\.ifeng\.com\//i,
exampleUrl: 'http://finance.ifeng.com/a/20131115/11089994_1.shtml',
nextLink: '//a[@id="pagenext"] | //div[@class="next" or @class="fy"]/a[text()="下一页"]',
autopager: {
pageElement: '//div[@id="artical_real"] | //div[@class="content"]/div[@class="contentL"] | //div[@class="yib_left"]/div[@class="box_list"]',
relatedObj: true,
replaceE: 'id("artical")/div[@class="an"]/div[@class="next"] | //div[@class="yib_left"]/div[@class="fy"]'
}
},
{name: '和讯财经微博',
url: /^http:\/\/t\.hexun\.com\/.*\.html/i,
exampleUrl: 'http://t.hexun.com/21210301/default.html',
nextLink: '//li[contains(@class, "nextbtn2")]/a[text()="下一页 >"]',
autopager: {
pageElement: '//div[@id="listWeibo"]',
replaceE: '//div[@id="page2"]'
}
},
{name: '和讯博客',
url: /^http:\/\/\w+\.blog\.hexun\.com\//i,
exampleUrl: 'http://23802543.blog.hexun.com/',
nextLink: function(doc) {
var url = doc.querySelector('.PageSkip_1 a[title="下一页"]').getAttribute('href');
url = url.replace(/(\/p\d+\/).*/, '$1default.html');
return url;
},
autopager: {
pageElement: 'id("DefaultContainer1_ArticleList_Panel1")'
}
},
{name: '汽车之家',
url: /^http:\/\/www\.autohome\.com\.cn\/.*\.html/i,
exampleUrl: 'http://www.autohome.com.cn/culture/201310/643479-7.html',
nextLink: 'id("articlewrap")/div[@class="page"]/a[@class="page-item-next"]',
autopager: {
pageElement: 'id("articleContent")',
relatedObj: true,
replaceE: 'id("articlewrap")/div[@class="page"]'
}
},
{name: '汽车之家论坛帖子和列表',
url:/^http:\/\/club\.autohome\.com\.cn\/bbs/i,
siteExample:'http://club.autohome.com.cn/bbs/forum-c-2313-1.html',
nextLink:'auto;',
autopager:{
pageElement:'//dl[@class="list_dl "][@lang] | //div[@class="conmain"]',
}
},
{name: '爱卡汽车',
url: /^http:\/\/yp\.xcar\.com\.cn\/.*\.html/i,
exampleUrl: 'http://yp.xcar.com.cn/201311/news_1351064_1.html',
nextLink: '//div[@class="article_page_bottom"]/a[@class="page_down"]',
autopager: {
pageElement: 'id("newsbody")',
relatedObj: true,
replaceE: '//div[@class="article_page_bottom"]'
}
},
{name: '爱卡汽车论坛帖子',
url:/^http:\/\/www\.xcar\.com\.cn\/bbs\/viewthread/i,
siteExample:'http://www.xcar.com.cn/bbs/viewthread.php?tid=12474760',
nextLink:'//a[text()="下一页>"][@href]',
autopager:{
pageElement:'//form[@id="delpost"] | //div[@class="maintable"][@id="_img"]',
}
},
{name: '新闻 - 加拿大华人网',
url: /^http:\/\/www\.sinonet\.org\/.*\.html/i,
exampleUrl: 'http://www.sinonet.org/news/society/2013-11-15/301940.html',
nextLink: '//p[@class="pageLink"]/a[text()="下一页"]',
autopager: {
pageElement: 'id("zoom")',
relatedObj: true
}
},
{name: '美国中文网',
url: /^http:\/\/news\.sinovision\.net\/.*\.htm/i,
exampleUrl: 'http://news.sinovision.net/politics/201401/00279206.htm',
nextLink: '//div[@class="pg"]/a[@class="nxt"]',
autopager: {
pageElement: '//div[@class="d"]/table[@class="vwtb"]',
replaceE: '//div[@class="pg"]',
relatedObj: true
}
},
{name: '火星网-中国领先的数字艺术门户',
url: /^http:\/\/news\.hxsd\.com\/.*\.html/i,
exampleUrl: 'http://news.hxsd.com/CG-dynamic/201401/684528.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="news_content_left"]/div[@class="content"]',
}
},
{name: '铁血网',
url: /^http:\/\/bbs\.tiexue\.net\/post.*\.html/i,
exampleUrl: 'http://bbs.tiexue.net/post2_7969883_3.html',
nextLink: '//div[@class="page"]/a[text()="下一页"]',
autopager: {
pageElement: 'id("postContent")/div[@class="newconli2"]',
relatedObj: true
}
},
{name: '看天下',
url: /^http:\/\/www\.vistastory\.com\/.*\.html/i,
exampleUrl: 'http://www.vistastory.com/a/201408/5395.html',
nextLink: '//a[@class="cpnext"]',
autopager: {
pageElement: 'css;.arc_body',
}
},
{name: '参政消息',
url: '^http://china\\.cankaoxiaoxi\\.com/.*\\.shtml',
nextLink: 'id("next_page")',
pageElement: 'id("ctrlfscont")',
exampleUrl: 'http://china.cankaoxiaoxi.com/roll10/2014/0817/464381.shtml',
},
{name: '中国网山东频道',
url: '^http://sd\\.china\\.com\\.cn/.*\\.html',
autopager: {
pageElement: 'css;.content',
relatedObj: true,
}
},
{name: '凯迪社区',
url: '^http://club\\.kdnet\\.net/list\\.asp',
nextLink: 'auto;',
pageElement: '//div[@class="lf w840px"]/div[@class="list-table"]/table',
exampleUrl: 'http://club.kdnet.net/list.asp?t=0&boardid=1&selTimeLimit=0&action=&topicmode=0&s=&page=1',
},
{name: '木木文摘',
url: 'http://www\\.85nian\\.net/',
nextLink: 'auto;',
pageElement: 'css;.entry-content'
},
//--- 国外新闻
{name: 'TouringCarTimes',
url: /^http:\/\/www\.touringcartimes\.com\/category\//i,
nextLink: '//li[@class="bpn-next-link"]/a',
autopager: {
pageElement: '//div[@id="archive_page_wrapper"]',
}
},
{name: 'tomshardware',
url: /^http:\/\/www\.tomshardware\.com\//i,
exampleUrl: 'http://www.tomshardware.com/reviews/chrome-27-firefox-21-opera-next,3534-2.html',
nextLink: '//li[@class="item icon active"]/following::a[1]',
autopager: {
pageElement: '//article[@id="news-content"]',
}
},
// ========================= video =====================
{name: '优酷视频',
url: /^http:\/\/(?:www|u|i|tv)\.youku\.com\//i,
nextLink: '//a[@title="下一页"] | //li[@class="next"]/a[text()="下一页"] | //a[em/@class="ico_next"] | //a[span/@class="ico__pagenext"]',
autopager: {
pageElement: '//div[@id="list" or @id="listofficial"] | id("getVideoList") | id("imgType") | //div[@class="YK_main" or @class="mainCol"]/descendant::div[@class="items"]',
}
},
{name: "搜库-专找视频",
url: "^http://www\\.soku\\.com/",
nextLink: '//li[@class="next"]/a[@title="下一页"]',
autopager: {
pageElement: '//div[@class="sk_result"]',
separatorReal: false,
}
},
{name: '爱奇艺',
url: /^http:\/\/(list|so)\.iqiyi\.com\//i,
nextLink: '//div[@class="page"]/a[text()="下一页"]',
autopager: {
pageElement: '//div[@class="list_content"]/div[@class="list0"] | //div[@class="s_main"]/descendant::div[@class="mod_sideright clearfix"]/ul',
}
},
{name: '土豆网 - 全部视频',
url: /^http:\/\/www\.tudou\.com\/cate\/.*\.html/i,
exampleUrl: 'http://www.tudou.com/cate/ach30.html',
nextLink: '//div[@class="page-nav-bar"]/a[text()="下一页>"]',
autopager: {
pageElement: '//div[@class="content"]',
}
},
{name: '搜狐视频 搜索',
url: /^http:\/\/so\.tv\.sohu\.com\/mts\?&wd=/i,
exampleUrl: 'http://so.tv.sohu.com/mts?&wd=%u6211%u662F%u7279%u79CD%u5175%u4E4B%u706B%u51E4%u51F0',
nextLink: '//div[@class="page"]/a[text()="下一页"]',
autopager: {
pageElement: '//div[@class="listBox clear"]/div[@class="column picList"]',
}
},
{name: '搜狐视频',
url: /^http:\/\/so\.tv\.sohu\.com\/list/i,
exampleUrl: 'http://so.tv.sohu.com/list_p1169_p2_u4E16_u754C_u676F_p3_p4_p5_p6_p7_p8_p9_p10_p11.html',
nextLink: '//div[@class="page"]/a[@class="next"]',
autopager: {
pageElement: 'id("contentList")/div[@class="column-bd clear"]/ul[@class="cfix"]',
replaceE: 'id("contentList")/div[@class="page"]',
}
},
{name: 'bilibili',
"url": "^http://(www\\.bilibili\\.tv/search|space\\.bilibili\\.tv/)",
"nextLink": "//div[@class=\"pagelistbox\"]/a[@class=\"nextPage\"]|//ul[@class=\"page\"]/li[@class=\"current\"]/following-sibling::li[1]/a",
"pageElement": "//div[@class=\"searchlist\"]/ul[@class=\"search_result\"]/li|//div[@class=\"main_list\"]/ul/li"
},
{name: 'youtube 搜索列表',
url: /^https?:\/\/www\.youtube\.com\/results/i,
nextLink: '//div[contains(concat(" ", @class, " "), " yt-uix-pager ")]//a[last()][@href]',
autopager: {
pageElement: 'id("results")',
lazyImgSrc: 'data-thumb'
}
},
{name: 'imdb',
url: /^http:\/\/www\.imdb\.com\/search/i,
exampleUrl: 'http://www.imdb.com/search/title?count=100&title_type=feature,tv_series&ref_=nv_ch_mm_1',
nextLink: '//span[@class="pagination"]/a[last()] | id("right")/a[last()]',
autopager: {
pageElement: 'id("main")/*',
}
},
// ====================== shopping、生活 ===========================
{name: '淘宝搜索',
url: '^http://(?:list|s|search[^.]*)\\.taobao\\.com/search',
nextLink: '//a[@class="page-next"]',
autopager: {
pageElement: '//div[@class="tb-content"]',
lazyImgSrc: 'data-lazyload-src|data-ks-lazyload',
}
},
{name: "淘宝",
url: /^http:\/\/(?!bbs).*\.taobao\.com\//i,
nextLink: 'auto;',
autopager: {
pageElement: '//div[@id="J_ShopSearchResult"]/div/div[contains(@class, "shop-hesper-bd")] | id("J_ItemListsContainer")/ul[@class="item-lists"]',
lazyImgSrc: 'data-lazyload-src|data-ks-lazyload',
}
},
{name: '天猫 - 搜索',
url: '^http://list\\.tmall\\.com//?search_product\\.htm\\?',
nextLink: '//a[@class="ui-page-next" and (text()="下一页>>")]',
autopager: {
pageElement: '//div[@id="J_ItemList"]',
relatedObj: true,
replaceE: '//div[@class="ui-page-wrap"]',
lazyImgSrc: 'data-lazyload-src|data-ks-lazyload',
},
},
{name: '店内搜索页-淘宝网',
url: /^http:\/\/[^.]+\.taobao\.com\/search\.htm\?/i,
exampleUrl: 'http://jiaqibaihou.taobao.com/search.htm?spm=a1z10.3.w4002-1381691988.18.GgWBry&mid=w-1381691988-0&search=y&keyword=%BC%AA%C1%D0&pageNo=1',
nextLink: '//a[(text()="下一页")][not(@class="disable")]',
autopager: {
pageElement: '//div[@id="J_ShopSearchResult"]/div/div[contains(@class, "shop-hesper-bd")]',
lazyImgSrc: 'data-lazyload-src|data-ks-lazyload',
}
},
{name: '淘宝论坛 ',
url: /^http:\/\/bbs\.taobao\.com\//i,
exampleUrl: 'http://bbs.taobao.com/catalog/thread/647133-264959947.htm?spm=0.0.0.0.Ji1u2u',
nextLink: 'auto;',
autopager: {
pageElement: 'id("detail")/div[@class="bbd"] | //div[@class="main-wrap"]//div[@class="bd"]/table[@class="posts"]',
replaceE: '//div[@class="pagination"]'
}
},
{name: '京东商城',
url: /^http:\/\/.*\.jd\.com\//i,
exampleUrl: 'http://list.jd.com/670-686-690-0-0-0-0-0-0-0-1-1-1-1-18-1574-29455-0.html',
nextLink: 'auto;',
autopager: {
pageElement: 'id("plist")',
useiframe: true,
lazyImgSrc: 'data-lazyload',
}
},
{name: '京东读书',
url: /^http:\/\/read\.jd\.com\/.*\/.*\.html/i,
exampleUrl: 'http://read.jd.com/16171/778043.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="mc clearfix"]',
}
},
{name: '亚马逊',
url: /^http:\/\/www\.amazon\.cn\/gp\/search\//i,
nextLink: 'auto;',
autopager: {
pageElement: 'id("mainResults") | id("btfResults")',
}
},
{name: '易迅网',
url: /^http:\/\/searchex\.yixun\.com\//i,
exampleUrl: 'http://searchex.yixun.com/705798t706810-1001-/?YTAG=3.706810246020',
nextLink: '//div[@class="sort_page_num"]/a[@title="下一页"]',
autopager: {
pageElement: '//UL[@id="itemList"]',
lazyImgSrc: 'init_src'
}
},
{name: '前程无忧 - 搜索',
url: /^http:\/\/search\.51job\.com\/jobsearch\/search_result/i,
nextLink: '//table[@class="searchPageNav"]//td[@class="currPage"]/following-sibling::td[1]/a',
autopager: {
pageElement: 'id("resultList")',
}
},
{name: '抢了个便宜 | 高性价比正品低价商品推荐网',
url: /^http:\/\/www\.qlgpy\.com\//i,
nextLink: '//div[@class="wpagenavi"]/a[text()="下页"]',
autopager: {
pageElement: 'id("wrapmain")//ul[starts-with(@id, "post-")]',
}
},
{name: '秒便宜论坛',
url: /^http:\/\/bbs\.miaopy\.com\//i,
exampleUrl: 'http://bbs.miaopy.com/activity/list-3.aspx',
nextLink: 'auto;',
autopager: {
pageElement: 'css;.forumtopics-list',
stylish: 'div.sp-separator { width: 800px !important;}'
}
},
{name: '露天拍賣',
url: /^http:\/\/[a-z]+\.ruten\.com\.tw\//i,
exampleUrl: 'http://class.ruten.com.tw/category/sub00.php?c=0019000800010001',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="searchResult"]',
}
},
{name: 'Yahoo!奇摩拍賣',
url: /^https:\/\/tw\.bid\.yahoo\.com\//i,
exampleUrl: 'https://tw.bid.yahoo.com/tw/2092076277-category-leaf.html?.r=1408853888',
nextLink: 'auto;',
autopager: {
pageElement: 'id("srp_sl_result")',
}
},
// 手机评测等
{name: '杀价帮3C导购网—真实 客观 独立 自由',
url: /^http:\/\/www\.shajia\.cn\/article/i,
exampleUrl: 'http://www.shajia.cn/article_list.php',
nextLink: 'auto;',
autopager: {
pageElement: 'id("agreement")',
}
},
{name: '机锋网',
url: /^http:\/\/www\.gfan\.com\/review\/\w+\.html/,
exampleUrl: 'http://www.gfan.com/review/2014091557751.html',
nextLink: 'auto;',
autopager: {
pageElement: '//div[@class="news-content"]',
relatedObj: true
}
},
// ========================= 知识、阅读 ============================
{name: '豆瓣-书影音评论',
url: '^http://.*\\.douban\\.com/subject',
nextLink: '//div[@class="paginator"]/span[@class="next"]/a[contains(text(),"后页>")]',
autopager: {
pageElement: '//ul[contains(@class,"topic-reply")] | //div[@class="article"]/table | //div[@id="comments" or @class="post-comments"]'
}
},
{name: '我的小组话题 - 豆瓣',
url: /^http:\/\/www\.douban\.com\/group\//i,
exampleUrl: 'http://www.douban.com/group/',
nextLink: '//div[@class="paginator"]/span[@class="next"]/a[text()="后页>"]',
autopager: {
pageElement: 'id("content")/div/div[@class="article"]',
}
},
{name: '豆瓣全站',
url: '^http://.*\\.douban\\.com/.*',
nextLink: '//div[@class="paginator"]/span[@class="next"]/a[contains(text(),"后页>")]',
autopager: {
pageElement: 'id("miniblog") | //*[@class="photolst clearfix" or @class="photolst clearbox" or @class="event-photo-list" or @class="poster-col4 clearfix"] | \
//div[@id="comment-section"] | //table[@class="olt" or @class="list-b"]/tbody | //div[contains(@class,"clearfix")]/div[@class="article"]'
}
},
{name: '知乎',
url: /^http:\/\/www\.zhihu\.com\/collection/i,
exampleUrl: 'http://www.zhihu.com/collection/19561986',
nextLink: 'auto;',
autopager: {
pageElement: 'id("zh-list-answer-wrap")/div[@class="zm-item"]',
useiframe: true,
newIframe: true
}
},
{name: '译言网 | 译文库和原文库',
url: /^http:\/\/(?:article|source)\.yeeyan\.org\//i,
nextLink: '//ul[contains(concat(" ",normalize-space(@class)," "), " y_page") ]/li/a[text()="下一页"]',
autopager: {
pageElement: '//div[contains(concat(" ",normalize-space(@class)," "), "content_box")] | //div[@class="y_l"]/div[@class="y_s_list"]',
replaceE: '//ul[contains(concat(" ",normalize-space(@class)," "), " y_page") ]'
}