forked from y010204025/UserScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Autopage.user.js
7171 lines (7018 loc) · 330 KB
/
Autopage.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
// ==UserScript==
// @name 自动无缝翻页
// @version 4.1.3
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
// @connect www.xuexiniu.com
// @connect bbs.xuexiniu.com
// @connect www.tujigu.net
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHGdqCHn4HPzePaIxhVSoYbYRXrn7BeMVbCUduF6kVUXHwvQP+6amDaqDnoIompmQytaBnTmB8H5lowrjgFss48SBeI/hUEEZeudLi1ywhJEIJdL6Q8rzal/1a5SGC4XZrYBvWwEZobMdLdH6RH+z/Io1taEeh52fe8tOZbysl/ouWFvANYP7fSz4DgAEBBIL4xiS8ubmnVcTZK68aRK29Dtm8dgnZJydR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PzRuTcP/GXV82lYlaJpfQ+BjVdhXX0tNKTAjvzKqKXPTeC++1NKY0c9kVz1SGzb9X8tjIdfzSFCDfUw/noA0scPuxBrwcvmmH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC
// @grant GM_xmlhttpRequest
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @grant GM_openInTab
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_notification
// @grant unsafeWindow
// @license GPL-3.0 License
// @run-at document-end
// @namespace https://github.com/XIU2/UserScript
// @supportURL https://github.com/XIU2/UserScript
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
(function() {
'use strict';
var menuAll = [
['menu_disable', '✅ 已启用 (点击对当前网站禁用)', '❌ 已禁用 (点击对当前网站启用)', []],
['menu_discuz_thread_page', '帖子内自动翻页', '帖子内自动翻页', true],
['menu_page_number', '显示当前页码及点击暂停翻页', '显示当前页码及点击暂停翻页', true],
['menu_pause_page', '左键双击网页空白处暂停翻页', '左键双击网页空白处暂停翻页', false]
], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, locationC = false, nowLocation = '', lp = location.pathname, forumWebsite = ['cs.rin.ru', 'www.flyert.com', 'bbs.pediy.com', 'www.libaclub.com', 'tieba.baidu.com', 'www.cadtutor.net', 'www.theswamp.org', 'www.xuexiniu.com', 'bbs.xuexiniu.com', 'www.taoguba.com.cn', 'www.cnprint.org', 'www.ablesci.com'];
for (let i=0;i<menuAll.length;i++){ // 如果读取到的值为 null 就写入默认值
if (GM_getValue(menuAll[i][0]) == null){GM_setValue(menuAll[i][0], menuAll[i][3])};
}
registerMenuCommand();
if (menuId.length < 2) {return}
// 注册脚本菜单
function registerMenuCommand() {
if (menuId.length != []){
for (let i=0;i<menuId.length;i++){
GM_unregisterMenuCommand(menuId[i]);
}
}
for (let i=0;i<menuAll.length;i++) { // 循环注册脚本菜单
menuAll[i][3] = GM_getValue(menuAll[i][0]);
if (menuAll[i][0] === 'menu_disable') { // 启用/禁用
if (menu_disable('check')) { // 当前网站在禁用列表中
menuId[i] = GM_registerMenuCommand(`${menuAll[i][2]}`, function(){menu_disable('del')});
return
} else { // // 不在禁用列表中
webType = doesItSupport(); // 判断网站类型(即是否支持),顺便直接赋值
if (webType === 0) {
GM_registerMenuCommand('❌ 当前网站暂不支持 [点击申请支持]', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
console.info('[自动无缝翻页] - 不支持当前网站 [ ' + location.href + ' ],欢迎申请支持: https://github.com/XIU2/UserScript / https://greasyfork.org/zh-CN/scripts/96880/feedback');
return
} else if (webType === -1) {
return
}
menuId[i] = GM_registerMenuCommand(`${menuAll[i][1]}`, function(){menu_disable('add')});
}
} else if (menuAll[i][0] === 'menu_discuz_thread_page') { // 帖子内自动翻页 (仅论坛)
if ([2,4,5,6].indexOf(webType) > -1 || forumWebsite.indexOf(location.hostname) > -1) {
menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
}
} else {
menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
}
}
menuId[menuId.length] = GM_registerMenuCommand('💬 反馈 & 欢迎申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
}
// 网站规则
function setDBSite() {
/*
functionS: 匹配该网站域名时要执行的函数(一般用于根据 URL 分配相应翻页规则)
locationC: 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则(需要放在 functionS 中)
insStyle: 要插入网页的 CSS Style 样式
hiddenPN: 不显示脚本左下角的页码
history: 添加历史记录 并 修改当前 URL
retry: 允许获取失败后重试
pager: {
type: 翻页模式
1 = 由脚本实现自动无缝翻页(适用于:静态加载内容网站,常规模式)
2 = 只需要点击下一页按钮(适用于:网站自带了 自动无缝翻页 功能)
nextText: 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页(避免一瞬间加载太多次下一页,下同)
nextTextOf: 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页
nextHTML: 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页
interval: 点击间隔时间,对于没有按钮文字变化的按钮,可以手动指定间隔时间(单位 ms,默认 300,当指定上面三个时,会忽略 interval)
isHidden: 只有下一页按钮可见时(没有被隐藏),才会点击
3 = 依靠 [基准元素] 与 [浏览器可视区域底部] 之间的距离缩小来触发翻页(适用于:主体元素下方内容太多 且 高度不固定时)
scrollE: 作为基准线的元素(一般为底部页码元素)
scrollD: 基准元素 - 可视区域底部
4 = 动态加载类网站(适用于:简单的动态加载内容网站)
insertE: 用来插入元素的函数
5 = 插入 iframe 方式来加载下一页,无限套娃(适用于:部分动态加载内容的网站,需要允许 iframe 且支持通过 GET/POST 直接打开下一页)
insStyle: 加载 iframe 前要插入的 CSS Style 样式(比如为了悬浮的样式与下一页的重叠,隐藏网页底部间距提高阅读连续性)
iframe: 这个必须加到 pager{} 外面(这样才会在该域名的 iframe 框架下运行脚本)
forceTarget: 强制新标签页打开链接(适用于一些使用 pjax 技术的链接)
6 = 通过 iframe 获取下一页动态加载内容插入本页,只有一个娃(适用于:部分动态加载内容的网站,与上面不同的是,该模式适合简单的网页,没有复杂事件什么的)
loadTime: 预留的网页加载时间,确保网页内容加载完成
forceTarget: 强制新标签页打开链接
nextL: 下一页链接所在元素
pageE: 要从下一页获取的元素
insertP: 下一页元素插入本页的位置(数组第一个是基准元素,第二个是基准元素的前后具体位置)
1 = 插入基准元素自身的前面
2 = 插入基准元素内,第一个子元素前面
3 = 插入基准元素内,最后一个子元素后面
4 = 插入基准元素自身的后面
5 = 插入 pageE 列表最后一个元素的后面(该 insertP 可以直接省略不写,等同于 ['pageE', 5] )
6 = 插入该元素自身内部末尾(针对小说网站等文本类的)
// 小技巧:当基准元素是下一页主体元素的父元素时(或者说要将下一页元素插入到本页同元素最后一个后面时)是可以省略不写 insertP
例如:当 pageE: 'css;ul>li' 且 insertP: ['css;ul', 3] 时,实际等同于 ['css;ul>li', 5]
当 pageE: 'css;.item' 且 insertP: ['css;.item', 4] 时,实际等同于 ['css;.item', 5]
当 pageE: 'css;.item' 且 insertP: ['css;.page', 1] 时,实际等同于 ['css;.item', 5]
注意:如 pageE 中选择了多类元素,则不能省略 insertP(比如包含 `,` 与 `|` 符号)
replaceE: 要替换为下一页内容的元素(比如页码)
scrollD: 翻页动作触发点([滚动条] 与 [网页底部] 之间的距离),数值越大,越早开始翻页,一般是访问网页速度越慢,该值就需要越大
scriptT: 单独插入 <script> 标签
0 = 下一页的所有 <script> 标签
1 = 下一页的所有 <script> 标签(不包括 src 链接)
2 = 下一页主体元素 (pageE) 的同级 <script> 标签
3 = 下一页主体元素 (pageE) 的子元素 <script> 标签
interval: 翻页后间隔时间(单位 ms)
forceHTTPS: 下一页链接强制 HTTPS
},
function: {
bF = 插入前执行函数
aF = 插入后执行函数
pF = 参数
}
*/ //<<< 规则简单说明 >>>
DBSite = {
discuz_forum: {
pager: {
type: 2,
nextL: 'css;#autopbn',
nextTextOf: '下一页',
scrollD: 1500
}
}, // Discuz! 论坛 - 帖子列表(自带无缝加载下一页按钮的)
discuz_guide: {
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'id("threadlist")//table[./tbody[contains(@id, "normalthread_")]]/tbody[not(@id="separatorline")]',
replaceE: 'css;.pg, .pages',
scrollD: 1500
}
}, // Discuz! 论坛 - 导读页 及 帖子列表(不带无缝加载下一页按钮的)
discuz_waterfall: {
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#waterfall > li',
replaceE: 'css;.pg, .pages',
scrollD: 1500
}
}, // Discuz! 论坛 - 图片模式的帖子列表(不带无缝加载下一页按钮的)
discuz_thread: {
insStyle: '.pgbtn {display: none;}',
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#postlist > div[id^="post_"]',
replaceE: 'css;#ct > .pgs, .pages',
scrollD: 1500
},
function: {
bF: src_bF,
pF: [0, 'img[file]', 'file']
}
}, // Discuz! 论坛 - 帖子内
discuz_search: {
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#threadlist > ul',
replaceE: 'css;.pg, .pages',
scrollD: 1500
}
}, // Discuz! 论坛 - 搜索页
discuz_youspace: {
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;form:not([action^="search.php?"]) tbody > tr:not(.th)',
replaceE: 'css;.pg, .pages',
scrollD: 1500
}
}, // Discuz! 论坛 - 回复页、主题页(别人的)
discuz_collection: {
pager: {
type: 1,
nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
pageE: 'css;#ct .bm_c table > tbody',
replaceE: 'css;.pg, .pages',
scrollD: 1500
}
}, // Discuz! 论坛 - 淘帖页
flarum: {
functionS: function() {locationC = true;if (!indexOF('/d/')) {curSite = DBSite.flarum;}},
pager: {
type: 2,
nextL: 'css;.DiscussionList-loadMore > button',
isHidden: true,
scrollD: 1500
}
}, // Flarum 论坛
phpbb: {
functionS: function() {if (indexOF('/viewforum.php')) {
curSite = DBSite.phpbb;
} else if (indexOF('/viewtopic.php') && GM_getValue('menu_discuz_thread_page')) {
curSite = DBSite.phpbb_post;
} else if (indexOF('/search.php')) {
curSite = DBSite.phpbb_search;
}},
pager: {
type: 1,
nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
pageE: 'css;.forumbg:not(.announcement) ul.topiclist.topics > li',
replaceE: 'css;.action-bar .pagination, .topic-actions .pagination',
scrollD: 2000
}
}, // phpBB 论坛 - 帖子列表
phpbb_post: {
pager: {
type: 1,
nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
pageE: 'css;div.post[id], div.post[id]+hr',
replaceE: 'css;.action-bar .pagination, .topic-actions .pagination',
scrollD: 2000
}
}, // phpBB 论坛 - 帖子内
phpbb_search: {
pager: {
type: 1,
nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
pageE: 'css;div.search.post',
replaceE: 'css;.action-bar .pagination, .pagination',
scrollD: 2000
}
}, // phpBB 论坛 - 搜索页
xenforo: {
functionS: function() {if (indexOF(/\/(forums|f)\//)) {
curSite = DBSite.xenforo;
} else if (indexOF(/\/(threads|t)\//) && GM_getValue('menu_discuz_thread_page')) {
curSite = DBSite.xenforo_post;
} else if (indexOF('/search/')) {
curSite = DBSite.xenforo_search;
}},
pager: {
type: 1,
nextL: 'css;a.pageNav-jump--next',
pageE: 'css;.structItemContainer-group.js-threadList > div',
replaceE: 'css;nav.pageNavWrapper',
scrollD: 2500
}
}, // XenForo 论坛 - 帖子列表
xenforo_post: {
pager: {
type: 1,
nextL: 'css;a.pageNav-jump--next',
pageE: 'css;.block-body.js-replyNewMessageContainer > article',
replaceE: 'css;nav.pageNavWrapper',
scrollD: 2500
}
}, // XenForo 论坛 - 帖子内
xenforo_search: {
pager: {
type: 1,
nextL: 'css;a.pageNav-jump--next',
pageE: 'css;ol.block-body > li',
replaceE: 'css;nav.pageNavWrapper',
scrollD: 2500
}
}, // XenForo 论坛 - 搜索页
xiuno: {
functionS: function() {if (lp == '/' || indexOF(/\/(index|forum)/)) {curSite = DBSite.xiuno;} else if (indexOF('/thread') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.xiuno_post;}},
pager: {
type: 1,
nextL: '//li[@class="page-item"]/a[text()="▶"]',
pageE: 'css;ul.threadlist > li',
replaceE: 'css;ul.pagination',
scrollD: 1500
}
}, // Xiuno 论坛 - 帖子列表
xiuno_post: {
pager: {
type: 1,
nextL: '//li[@class="page-item"]/a[text()="▶"]',
pageE: 'css;li.post[data-pid]:not(.newpost)',
replaceE: 'css;ul.pagination',
scrollD: 1500
}
}, // Xiuno 论坛 - 帖子内
dux: {
functionS: function() {if (!indexOF('.html')) curSite = DBSite.dux;},
host: 'www.puresys.net',
pager: {
type: 1,
nextL: 'css;li.next-page > a',
pageE: 'css;.content > article',
replaceE: 'css;.content > .pagination',
scrollD: 1500
},
function: {
bF: src_bF,
pF: [0, 'img.thumb[data-src]', 'data-src']
}
}, // WordPress 的 DUX、XIU、D8 主题
begin: {
functionS: function() {if (location.search.slice(0,3) === '?s=') {curSite = DBSite.begin_search;} else if (!indexOF('.html')) {curSite = DBSite.begin;}},
pager: {
type: 2,
nextL: 'css;div[id^="ias_trigger_"]',
interval: 500,
scrollD: 1500
}
}, // WordPress 的 Begin 主题
begin_search: {
pager: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#main > ul > li',
replaceE: 'css;nav.pagination',
scrollD: 1500
}
}, // WordPress 的 Begin 主题 - 搜索页
biquge: {
functionS: function() {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge;}},
insStyle: 'img {display: none !important;}',
history: true,
pager: {
type: 1,
nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
pageE: 'css;#content, #chaptercontent, .chaptercontent, #BookText',
insertP: ['css;#content, #chaptercontent, .chaptercontent, #BookText', 6],
replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
scrollD: 1500
}
}, // 笔趣阁 模板的小说网站
baidu: {
host: 'www.baidu.com',
functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.hostname = 'm.baidu.com';}},
insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}',
history: true,
pager: {
type: 1,
nextL: 'id("page")//a[contains(text(),"下一页")]',
pageE: 'css;#content_left > *',
replaceE: 'css;#page',
scrollD: 2000
}
}, // 百度 搜索
baidu_m: {
host: 'm.baidu.com',
functionS: function() {if (indexOF('/s')) curSite = DBSite.baidu_m;},
history: true,
insStyle: 'div.result[tpl="recommend_list"], #page-copyright {display: none !important;}',
pager: {
type: 1,
nextL: 'css;a[class^="new-nextpage"]',
pageE: 'css;#results > *',
replaceE: 'css;#page-controller',
scrollD: 2000
}
}, // 百度 搜索 - 手机版
google: {
host: /\.google\./,
functionS: function() {if (lp == '/search' && !indexOF('tbm=isch', 's')) {
curSite = DBSite.google;
} else if (lp == '/scholar') {
curSite = DBSite.google_scholar;
}},
history: true,
pager: {
type: 1,
nextL: 'css;#pnnext',
pageE: 'id("search")/* | //style[not(contains(text(), "table,div,span,p{display:none}"))]',
insertP: ['css;#search', 3],
replaceE: 'id("navcnt") | id("rcnt")//div[@role="navigation"]',
scriptT: 0,
scrollD: 3000
},
function: {
bF: google_bF
}
}, // 谷歌 搜索
bing: {
host: ['www.bing.com','cn.bing.com'],
functionS: function() {if (lp == '/search') {
curSite = DBSite.bing;
} else if (lp == '/academic/search') {
curSite = DBSite.bing_academic;
}},
insStyle: '.b_imagePair.square_mp > .inner {display: none !important;}',
history: true,
pager: {
type: 1,
nextL: 'css;a.sb_pagN',
pageE: 'css;#b_results > li:not(.b_msg):not([class="b_ans"]):not(.b_pag):not(#mfa_root)',
replaceE: 'css;#b_results > .b_pag',
scrollD: 1500
},
function: {
bF: bing_bF
}
}, // 必应 搜索
sogou: {
host: 'www.sogou.com',
functionS: function() {if (location.pathname != '/') {curSite = DBSite.sogou;}},
history: true,
pager: {
type: 1,
nextL: 'css;#sogou_next',
pageE: 'css;.results > *',
replaceE: 'css;#pagebar_container',
scriptT: 3,
scrollD: 1500
}
}, // 搜狗 搜索
sogou_weixin: {
host: 'weixin.sogou.com',
functionS: function() {if (lp == '/') {
curSite = DBSite.sogou_weixin;
} else if (lp == '/weixin') {
curSite = DBSite.sogou_weixin_search;
}},
pager: {
type: 2,
nextL: 'css;#look-more',
interval: 1000,
scrollD: 1000
}
}, // 搜狗微信 - 首页
sogou_weixin_search: {
history: true,
pager: {
type: 1,
nextL: 'css;#sogou_next',
pageE: 'css;ul[class*="news-list"] > li',
replaceE: 'css;#pagebar_container',
scrollD: 1200
}
}, // 搜狗微信 - 搜索
toutiao: {
host: ['www.toutiao.com', 'so.toutiao.com'],
functionS: function() {if (location.hostname != 'www.toutiao.com' && lp == '/search') curSite = DBSite.toutiao;},
history: true,
pager: {
type: 1,
nextL: '//div[contains(@class, "-pagination")]/a[string()="下一页"]',
pageE: 'css;div[class*="-result-list"] > .result-content[data-i]',
replaceE: 'css;div[class*="-pagination"]',
scrollD: 1500
},
function: {
bF: toutiao_bF
}
}, // 头条 搜索
so: {
host: 'www.so.com',
functionS: function() {if (location.pathname != '/') {curSite = DBSite.so; insStyle('img {opacity: 1 !important;}')}},
history: true,
pager: {
type: 1,
nextL: 'css;a#snext',
pageE: 'css;ul.result > li, style:not(src)',
insertP: ['css;ul.result', 3],
replaceE: 'css;#page',
scrollD: 1500
},
function: {
bF: src_bF,
pF: [0, 'img[data-isrc]', 'data-isrc']
}
}, // 360 搜索
duckduckgo: {
host: 'duckduckgo.com',
functionS: function() {
if (getCookie('av') != '1') {
document.cookie='av=1; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 强制开启自带的无缝翻页功能
location.reload(); // 刷新网页
}
},
}, // DuckDuckGo 搜索
startpage: {
host: ['startpage.com', 'www.startpage.com'],
functionS: function() {if (indexOF('/search')) {curSite = DBSite.startpage;}},
history: true,
pager: {
type: 1,
nextL: startpage_nextL,
pageE: 'css;section.w-gl--desktop > div',
replaceE: 'css;.pagination',
scrollD: 2000
}
}, // Startpage 搜索
yandex: {
host: 'yandex.com',
functionS: function() {if (lp == '/search/') {curSite = DBSite.yandex;}},
history: true,
pager: {
type: 1,
nextL: 'css;a.pager__item_kind_next',
pageE: 'css;#search-result > *, style',
insertP: ['css;#search-result', 3],
replaceE: 'css;.pager',
scrollD: 2000
}
}, // Yandex 搜索
yahoo: {
host: 'search.yahoo.com',
functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo;}},
history: true,
pager: {
type: 1,
nextL: 'css;.pagination a.next',
pageE: 'css;#web ol > li',
replaceE: 'css;.pagination',
scrollD: 2000
}
}, // Yahoo 搜索
yahoo_jp: {
host: 'search.yahoo.co.jp',
functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo_jp;}},
history: true,
pager: {
type: 1,
nextL: 'css;.Pagenation__next > a',
pageE: 'css;.Contents__innerGroupBody > div',
replaceE: 'css;.Pagenation',
scrollD: 2000
}
}, // Yahoo 搜索 (JP)
qwant: {
host: 'www.qwant.com',
functionS: function() {locationC = true; if (indexOF('q=', 's') && indexOF('t=web', 's')) {curSite = DBSite.qwant;}},
pager: {
type: 2,
nextL: 'css;button[data-testid="buttonShowMore"]',
interval: 500,
scrollD: 2000
}
}, // Qwant 搜索
ecosia: {
host: 'www.ecosia.org',
functionS: function() {if (lp == '/search') {curSite = DBSite.ecosia;}},
history: true,
pager: {
type: 1,
nextL: 'css;nav.pagination a[aria-label="Next page"]',
pageE: 'css;section.mainline > div:not(.related-queries)',
replaceE: 'css;nav.pagination',
scrollD: 1500
}
}, // Ecosia 搜索
magi: {
host: 'magi.com',
functionS: function() {if (lp == '/search') {curSite = DBSite.magi;}},
pager: {
type: 2,
nextL: 'css;.card[data-type="next"]',
nextText: '加载更多',
scrollD: 1500
}
}, // Magi 搜索
ask: {
host: ['ask.com', 'www.ask.com'],
functionS: function() {if (lp == '/web') {curSite = DBSite.ask;}},
insStyle: '.PartialSearchResults-heading {display: none !important;}',
history: true,
pager: {
type: 1,
nextL: 'css;li.PartialWebPagination-next > a',
pageE: 'css;.PartialSearchResults.mid',
replaceE: 'css;.PartialWebPagination',
scrollD: 2000
}
}, // ASK 搜索
fsou: {
host: 'fsou.cc',
functionS: function() {if (lp == '/search') {curSite = DBSite.fsou;}},
history: true,
retry: 1000,
pager: {
type: 6,
nextL: () => getNextP('css;.selected.turn-page-text.turn-page-num', 'pageIndex=', /pageIndex=\d+/),
pageE: 'css;#search-result > div',
replaceE: 'css;.bottom-pagination',
loadTime: 1000,
scrollD: 3000
},
function: {
bF: fsou_bF
}
}, // F 搜
baidu_tieba: {
host: ['tieba.baidu.com', 'jump2.bdimg.com'],
functionS: function() {if (location.hostname == 'jump2.bdimg.com') location.hostname = 'tieba.baidu.com';
if (lp == '/f') {
baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题)
curSite = DBSite.baidu_tieba;
} else if (indexOF('/p/') && GM_getValue('menu_discuz_thread_page')) {
curSite = DBSite.baidu_tieba_post;
} else if (lp == '/f/search/res') {
curSite = DBSite.baidu_tieba_search;
}},
insStyle: 'img.j_retract {margin-top: 0 !important;margin-bottom: 0 !important;}', // 修复帖子列表中预览图片,在切换下一个/上一个图片时,多出来的图片上下边距
iframe: true,
pager: {
type: 4,
nextL: function() {if (getNextE('css;a.next.pagination-item')) getPageElems_(curSite.pageUrl + '&pagelets=frs-list%2Fpagelet%2Fthread&pagelets_stamp=' + new Date().getTime());},
pageE: 'css;#thread_list > li',
insertP: ['css;#thread_list', 3],
insertE: baidu_tieba_insertE,
replaceE: 'css;#frs_list_pager',
interval: 2000,
scrollD: 2500
},
function: {
bF: src_bF,
pF: [0, 'img[data-original]', 'data-original']
}
}, // 百度贴吧 - 帖子列表
baidu_tieba_post: {
forceTarget: true,
insStyle: '.d_sign_split, img.j_user_sign, .d_author .d_pb_icons, .save_face_bg, .save_face_bg_2, li.d_name a.icon_tbworld, .lzl_cnt a.icon_tbworld, .topic_list_box.topic-fixed {display: none !important;} a.p_author_face.j_frame_guide {background: none repeat scroll 0 0 #FFF !important;border: 1px solid #CCC !important;padding: inherit !important;} .red_text, .red-text, .vip_red, .vip-red, .vip_red:hover, .vip-red:hover, .vip_red:visited, .vip-red:visited {color: #2d64b3 !important;}', // 签名、印记、头像边框、VIP 元素
pager: {
type: 5,
nextL: '//li[contains(@class,"pb_list_pager")]/a[text()="下一页"]',
insStyle: 'ul.tbui_aside_float_bar, .core_title_wrap_bright.tbui_follow_fixed.core_title_absolute_bright {display: none !important;}',
scrollD: 1500
}
}, // 百度贴吧 - 帖子内
baidu_tieba_search: {
pager: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;.s_post_list > div',
replaceE: 'css;.pager',
scriptT: 1,
scrollD: 1000
}
}, // 百度贴吧 - 搜索页
douban_subject_comments: {
host: 'movie.douban.com',
functionS: function() {if (indexOF('/subject/') && indexOF('/comments')) {
curSite = DBSite.douban_subject_comments;
} else if (indexOF('/subject/') && indexOF('/reviews')) {
curSite = DBSite.douban_subject_reviews;
} else if(indexOF('/subject/') && indexOF('/episode') || indexOF('/subject/') && indexOF('/tv_discuss')) {
curSite = DBSite.douban_subject_episode;
} else if(indexOF('/people/') && indexOF('/collect')) {
curSite = DBSite.douban_people_collect;
} else if(indexOF('/celebrity/') && indexOF('/movies')) {
curSite = DBSite.douban_celebrity_movies;
}},
pager: {
type: 1,
nextL: 'css;a.next',
pageE: 'css;#comments > .comment-item',
replaceE: 'css;#paginator',
scrollD: 1500
}
}, // 豆瓣 - 短评
douban_subject_reviews: {
pager: {
type: 1,
nextL: 'css;link[rel="next"]',
pageE: 'css;.review-list > div',
replaceE: 'css;.paginator',
scrollD: 1500
}
}, // 豆瓣 - 影评
douban_subject_episode: {
pager: {
type: 1,
nextL: 'css;link[rel="next"]',
pageE: 'css;#comments > div',
replaceE: 'css;.paginator',
scrollD: 1500
}
}, // 豆瓣 - 剧评
douban_people_collect: {
pager: {
type: 1,
nextL: 'css;link[rel="next"]',
pageE: 'css;.grid-view > div',
replaceE: 'css;.paginator',
scrollD: 1500
}
}, // 豆瓣 - 看过的电影
douban_celebrity_movies: {
pager: {
type: 1,
nextL: 'css;link[rel="next"]',
pageE: 'css;.grid_view > ul > li',
replaceE: 'css;.paginator',
scrollD: 1500
}
}, // 豆瓣 - 作品
douban_group: {
host: 'www.douban.com',
functionS: function() {if (indexOF('/group/topic/')) {
curSite = DBSite.douban_group_topic;
} else if (indexOF('/group/explore')) {
curSite = DBSite.douban_group_explore;
} else if (indexOF('/group/') && indexOF('/discussion')) {
curSite = DBSite.douban_group;
}},
pager: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;table.olt > tbody > tr:not(.th)',
replaceE: 'css;.paginator',
scrollD: 1500
}
}, // 豆瓣 - 小组
douban_group_explore: {
pager: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;#content .article > div > .channel-item',
replaceE: 'css;.paginator',
scrollD: 1500
}
}, // 豆瓣 - 小组讨论精选
douban_group_topic: {
pager: {
type: 1,
nextL: 'css;span.next > a',
pageE: 'css;#comments > li',
replaceE: 'css;.paginator',
scrollD: 1500
}
}, // 豆瓣 - 小组帖子内
zhihu: {
host: 'www.zhihu.com',
functionS: function() {locationC = true; if (indexOF(/\/people\/.+\/.+/) || indexOF('/collection/')) {curSite = DBSite.zhihu; if (self != top) insStyle('#ProfileHeader {display: none !important;}')}},
forceTarget: true,
history: true,
iframe: true,
pager: {
type: 5,
nextL: function() {
let next = getCSS('.Pagination .PaginationButton--current+button:not(.PaginationButton-next)');
if (next) return (location.origin + location.pathname + '?page=' + next.textContent)
},
scrollD: 2000
}
}, // 知乎 - 用户主页、收藏夹
weibo_comment: {
host: 'weibo.com',
pager: {
type: 2,
nextL: 'css;a[action-type="click_more_comment"]',
nextText: '查看更多c',
scrollD: 1000
}
}, // 微博评论
tianya: {
host: 'bbs.tianya.cn',
functionS: function() {if (indexOF('/list')) {
curSite = DBSite.tianya;
} else if (indexOF('/post')) {
curSite = DBSite.tianya_post;
}},
pager: {
type: 1,
nextL: '//div[contains(@class, "pages")]/div[@class="links"]/a[text()="下一页"]',
pageE: 'css;.tab-bbs-list > tbody:not(:first-of-type)',
replaceE: '//div[contains(@class, "pages")]',
scrollD: 1500
}
}, // 天涯社区
tianya_post: {
pager: {
type: 1,
nextL: 'css;a.js-keyboard-next',
pageE: 'css;.atl-main > div[class="atl-item"]',
replaceE: 'css;.atl-pages > form',
scrollD: 2000
}
}, // 天涯社区 - 帖子内
nga_thread: {
host: ['bbs.nga.cn', 'ngabbs.com', 'nga.178.com', 'g.nga.cn'],
iframe: true,
functionS: function() {locationC = true;
if (lp == '/thread.php') { // 帖子列表
curSite = DBSite.nga_thread;
} else if (lp == '/read.php') { // 帖子内
curSite = DBSite.nga_read;
}},
pager: {
type: 1,
nextL: 'css;#pagebbtm a[title="下一页"]',
pageE: 'css;#topicrows > tbody, #topicrows > script',
insertP: ['css;#topicrows', 3],
replaceE: 'css;div[name="pageball"]',
scriptT: 2,
scrollD: 1000
},
function: {
aF: function() {document.body.appendChild(document.createElement('script')).textContent = 'commonui.topicArg.loadAll();';}
}
}, // NGA - 各版块帖子列表
nga_read: {
pager: {
type: 1,
nextL: 'css;#pagebbtm a[title*="下一页"]',
pageE: 'id("m_posts_c")/table | id("m_posts_c")/script | //script[contains(text(), "commonui.userInfo.setAll")]',
insertP: ['css;#m_posts_c', 3],
replaceE: 'css;div[name="pageball"]',
scriptT: 2,
scrollD: 1000
}
}, // NGA - 帖子内
v2ex_recent: {
host: ['v2ex.com', 'www.v2ex.com'],
functionS: function() {if (lp == '/') {
v2ex_aF('#Main a.topic-link:not([target])');
} else if (lp == '/recent') {
curSite = DBSite.v2ex_recent;
v2ex_aF('#Main a.topic-link:not([target])');
} else if (lp == '/notifications') {
curSite = DBSite.v2ex_notifications;
v2ex_aF('#Main a[href^="/t/"]:not([target])');
} else if (lp == '/balance') {
curSite = DBSite.v2ex_balance;
} else if (indexOF('/go/')) {
curSite = DBSite.v2ex_go;
v2ex_aF('#Main a.topic-link:not([target])');
} else if (indexOF('/replies')) {
curSite = DBSite.v2ex_replies;
v2ex_aF('#Main a[href^="/t/"]:not([target])');
}},
pager: {
type: 1,
nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;.cell.item',
replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table',
scrollD: 1500
},
function: {
aF: v2ex_aF,
pF: '#Main a.topic-link:not([target])'
}
}, // V2EX - 最近主题页
v2ex_notifications: {
pager: {
type: 1,
nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;#notifications > div',
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1500
},
function: {
aF: v2ex_aF,
pF: '#Main a[href^="/t/"]:not([target])'
}
}, // V2EX - 提醒消息页
v2ex_replies: {
pager: {
type: 1,
nextL: 'css;a.page_current+a.page_normal',
pageE: '//div[@id="Main"]//div[@class="box"]//div[@class="dock_area"] | //*[@id="Main"]//div[@class="box"]//div[@class="inner"] | //*[@id="Main"]//div[@class="box"]//div[@class="dock_area"][last()]/following-sibling::div[@class="cell"][1]',
insertP: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1500
},
function: {
aF: v2ex_aF,
pF: '#Main a[href^="/t/"]:not([target])'
}
}, // V2EX - 用户回复页
v2ex_go: {
pager: {
type: 1,
nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;#TopicsNode > div',
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1500
},
function: {
aF: v2ex_aF,
pF: '#Main a.topic-link:not([target])'
}
}, // V2EX - 分类主题页
v2ex_balance: {
pager: {
type: 1,
nextL: 'css;a.page_current+a.page_normal',
pageE: 'css;#Main .box > div:not(.cell) > table > tbody > tr:not(:first-child)',
replaceE: 'css;#Main > .box > .cell[style] > table',
scrollD: 1000
}
}, // V2EX - 账户余额页
jandan: {
host: 'jandan.net',
functionS: function() {if (lp == '/' || indexOF('/page/')) {
curSite = DBSite.jandan;
} else if (lp == '/dzh') {
curSite = DBSite.jandan_dzh;
} else {
curSite = DBSite.jandan_comment;
}},
insStyle: '#nav_prev, #nav_next, .post.f:not(.list-post) {display: none !important;}',
pager: {
type: 1,
nextL: '//div[@class="wp-pagenavi"]/a[contains(text(), "下一页") or contains(text(), "更多文章")]',
pageE: 'css;#content > .list-post',
replaceE: 'css;.wp-pagenavi',
scrollD: 1500
},
function: {
bF: src_bF,
pF: [0, 'img[data-original]', 'data-original']
}
}, // 煎蛋网
jandan_comment: {
insStyle: '#nav_prev, #nav_next {display: none !important;}',
pager: {
type: 1,
nextL: 'css;a.previous-comment-page',
pageE: 'css;ol.commentlist > li[id^="comment-"], script[src^="//cdn.jandan.net/static/min/"]',
insertP: ['css;ol.commentlist', 3],
replaceE: 'css;.cp-pagenavi',
scriptT: 2,
scrollD: 1500
}
}, // 煎蛋网
jandan_dzh: {
pager: {
type: 2,
nextL: 'css;.show_more',
interval: 1500,
scrollD: 1500
}
}, // 煎蛋网 - 大杂烩
qiushibaike: {
host: 'www.qiushibaike.com',
functionS: function() {insStyle('.qrcode-wrap, .qrcode-wrap-img, .index-side-left-AD1 {display: none !important;}');
if (lp == '/') {
curSite = DBSite.qiushibaike;
} else if (!indexOF('/article/')) {
curSite = DBSite.qiushibaike_;
}},
pager: {
type: 1,
nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
pageE: 'css;.recommend-article > ul > li',
replaceE: 'css;ul.pagination',
scrollD: 1500
}
}, // 糗事百科
qiushibaike_: {
pager: {
type: 1,
nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
pageE: 'css;[id^="qiushi_tag_"]',
replaceE: 'css;ul.pagination',
scrollD: 1500
}
}, // 糗事百科 - 分类页
lkong: {
host: 'www.lkong.com',
functionS: function() {if (indexOF('/forum/')) {
curSite = DBSite.lkong;
} else if (indexOF('/thread/')) {
curSite = DBSite.lkong_thread;
}},
pager: {
type: 1,
nextL: lkong_nextL,
pageE: '//div[@class="main-title"]/parent::div/parent::div | //head/style[@data-emotion-css]',
insertP: ['//div[@class="main-title"][1]/parent::div/parent::div/parent::div', 3],
replaceE: 'css;ul.ant-pagination',
interval: 500,
scrollD: 1200
}
}, // 龙的天空 - 各版块帖子列表
lkong_thread: {