forked from ywzhaiqi/userscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyNovelReader.user.js
4994 lines (4508 loc) · 217 KB
/
MyNovelReader.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==
// @id mynovelreader@[email protected]
// @name My Novel Reader
// @name:zh-CN 小说阅读脚本
// @name:zh-TW 小說閱讀腳本
// @version 5.3.8
// @namespace https://github.com/ywzhaiqi
// @author ywzhaiqi
// @contributor Roger Au, shyangs, JixunMoe、akiba9527 及其他网友
// @description 小说阅读脚本,统一阅读样式,内容去广告、修正拼音字、段落整理,自动下一页
// @description:zh-CN 小说阅读脚本,统一阅读样式,内容去广告、修正拼音字、段落整理,自动下一页
// @description:zh-TW 小說閱讀腳本,統一閱讀樣式,內容去廣告、修正拼音字、段落整理,自動下一頁
// @license GPL version 3
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_getResourceURL
// @grant GM_openInTab
// @grant GM_setClipboard
// @grant GM_registerMenuCommand
// @grant GM_info
// @grant unsafeWindow
// @connect *
// @homepageURL https://greasyfork.org/scripts/292/
// @require https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js
// @require https://cdn.staticfile.org/underscore.js/1.7.0/underscore-min.js
// @require https://cdn.staticfile.org/keymaster/1.6.1/keymaster.min.js
// @require https://greasyfork.org/scripts/2672-meihua-cn2tw/code/Meihua_cn2tw.js?version=7375
// @include *://read.qidian.com/*,*.aspx
// @include *://readbook.qidian.com/bookreader/*,*.html
// @include *://read.qidian.com/BookReaderOld/*,*.aspx
// @include *://read.qidian.com/BookReader/*,*.aspx
// @exclude http://read.qidian.com/BookReader/vol,*,*.aspx
// @include *://wwwploy.qidian.com/BookReader/*,*.aspx
// @include *://free.qidian.com/Free/ReadChapter.aspx?*
// @include *://www.qdmm.com/BookReader/*,*.aspx
// @include *://www.qdwenxue.com/BookReader/*,*.aspx
// @include *://chuangshi.qq.com/read/bookreader/*.html*
// @include *://chuangshi.qq.com/*bk/*/*-r-*.html*
// @include *://yunqi.qq.com/*bk/*/*.html
// @include *://dushu.qq.com/read.html?bid=*
// @include *://www.jjwxc.net/onebook.php?novelid=*
// @include *://book.zongheng.com/chapter/*/*.html
// @include *://www.xxsy.net/books/*/*.html
// @include *://book.zhulang.com/*/*.html
// @include *://www.17k.com/chapter/*/*.html
// @include *://mm.17k.com/chapter/*/*.html
// @include *://www.kanxia.net/k/*/*/*.html
// @include *://www.qingdi.com/files/article/html/*/*/*.html
// @include *://www.xkzw.org/*/*.html
// @include *://shouda8.com/*/*.html
// @include *://novel.hongxiu.com/*/*/*.shtml
// @include *://www.readnovel.com/novel/*.html
// http://www.tianyabook.com/*/*.htm
// @include *://tieba.baidu.com/p/*
// @include *://booklink.me/*
// @include *://2.booklink.me/*
// booklink.me
// @include *://www.shumilou.co/*/*.html
// @include *://www.shumilou.us/*/*.html
// @include *://www.shumilou.net/*/*/*.html
// @include *://www.wcxiaoshuo.com/wcxs-*-*/
// @include *://www.xiaoshuoz.com/wcxs-*-*/
// @include *://www.quledu.com/wcxs-*-*/
// @include *://www.ranwen.cc/*/*/*/*.html
// @include *://www.ranwen.net/files/article/*/*/*.html
// @include *://www.64mi.com/*/*/*/*.html
// @include *://www.bxs.cc/*/*.html*
// @include *://www.laishuwu.com/html/*/*/*.html
// @include *://www.binhuo.com/html/*/*/*.html
// @include *://www.haoqi99.com/haoqi99/*/*/*.shtml
// @include *://www.shuhe.cc/*/*/
// @include *://www.dudukan.net/html/*/*/*.html
// @include *://www.hahawx.com/*/*/*.htm
// @include *://www.zhuzhudao.com/txt/*/*/
// @include *://www.zhuzhudao.cc/txt/*/*/
// @include *://www.dahaomen.net/txt/*/*/
// @include *://www.tadu.com/book/*/*/
// @include *://www.aishoucang.com/*/*.html
// @include *://www.wanshuba.com/Html/*/*/*.html
// @include *://www.zhuishu.net/files/article/html/*/*/*.html
// @include *://www.sqsxs.com/*/*/*.html*
// @include *://www.caiwei.tw/html/*/*.html
// @include *://www.hotsk.com/Html/Book/*/*/*.shtml
// @include *://www.92to.com/*/*/*.html
// @include *://www.qirexs.com/read-*-chapter-*.html
// @include *://www.du00.com/read/*/*/*.html
// @include *://www.qishuwu.com/*/*/
// @include *://www.wandoou.com/book/*/*.html
// @include *://www.6yzw.org/*/*.html
// @include *://www.6yzw.com/*/*.html
// @include *://www.daomengren.com/*/*.html
// @include *://muyuge.com/*/*.html
// @include *://www.muyuge.net/*/*.html
// @include *://bbs.vyming.com/novel-read-*-*.html
// @include *://www.9imw.com/novel-read-*-*.html
// @include *://www.23zw.com/olread/*/*/*.html
// @include *://www.50zw.com/book_*/*.html
// @include *://www.xiangcunxiaoshuo.com/shu/*/*.html
// @include *://www.lwxs520.com/books/*/*/*.html
// @include *://www.zashu.net/books/*/*/*.html
// @include *://www.piaotian.net/html/*/*/*.html
// @include *://www.yunlaige.com/html/*/*/*.html
// @include *://www.cfwx.net/files/article/html/*/*/*.html
// @include *://www.qiuwu.net/html/*/*/*.html
// @include *://www.fengwu.org/html/*/*/*.html
// @include *://www.wenxue8.org/html/*/*/*.html
// @include *://www.xs84.com/*_*/*
// @include *://www.geiliwx.com/GeiLi/*/*/*.shtml*
// @include *://www.123yq.com/read/*/*/*.shtml
// @include *://www.123yq.org/read/*/*/*.shtml
// @include *://www.dhzw.com/book/*/*/*.html
// *://www.du00.cc/read/*/*/*.html
// @include *://www.aszw.com/book/*/*/*.html
// @include *://www.xsbashi.com/*_*/
// @include *://www.vodtw.com/Html/Book/*/*/*.html
// @include *://www.fhxs.com/read/*/*/*.shtml
// @include *://www.snwx.com/book/*/*/*.html
// @include *://www.33yq.com/read/*/*/*.shtml
// www.sodu.so
// @include *://www.jiaodu8.com/*/*/*/*.html
// @include *://www.fktxt.com/book/*/*.html
// @include *://www.186s.cn/files/article/html/*/*/*.html
// @include *://www.6xs.cn/xs/*/*/*.html
// @include *://www.chaojiqiangbing.com/book/*/*/*.html
// @include *://book.moka123.com/book/*/*/*.html
// @include *://www.suimeng.com/files/article/html/*/*/*.html
// @include *://www.hao662.com/haoshu/*/*/*.html
//www.verydu.net
// http://www.yawen8.com/*/*/*.html
// @include *://www.tsxs.cc/files/article/html/*/*/*.html
// @include *://www.ziyuge.com/*/*/*/*/*.html
// 其它网站
// @include *://book.sfacg.com/Novel/*/*/*/
// @include *://www.7dsw.com/book/*/*/*.html
// @include *://www.d586.com/*/*/
// @include *://www.bookgew.com/Html/Book/*/*/*.htm
// @include *://read.shuhaha.com/Html/Book/*/*/*.html
// @include *://www.shuhaha.com/Html/Book/*/*/*.html
// @include *://www.biqi.me/files/article/html/*/*/*.html
// @include *://www.ttzw.com/book/*/*.html
// @include *://www.uukanshu.com/*/*/*.html
// @include *://www.173ed.com/read/*/*.html
// @include *://www.a240.com/read/*/*.html
// @include *://www.zhuishu.com/*/*.html
// @include *://www.shuangde.cc/*/*.html
// @include *://www.shenmaxiaoshuo.com/ml-*-*/
// @include *://www.86kankan.com/read/*/*.html
// @include *://www.fkzww.com/*/*/*.html
// @include *://www.151kan.com/*/*/*/*.html
// @include *://www.bookabc.net/*/*/*.html
// @include *://www.xshuotxt.com/*/*/*/*.html
// @include *://www.doulaidu.com/*/*/*.html
// @include *://www.d586.com/*/*/
// @include *://www.kanshu.la/book/*/*html
// @include *://www.wtcxs.com/files/article/html/*/*/*.html
// @include *://www.5du5.com/book/*/*/*.html
// @include *://book.kanunu.org/*/*/*.html
// @include *://www.kanunu8.com/book*/*.html
// @include *://paitxt.com/*/*/*.html
// @include *://www.shunong.com/yuedu/*/*/*.html
// @include *://book.yayacms.com/*/book_*_*.html
// @include *://www.yqhhy.cc/*/*/*.html
// @include *://www.nuoqiu.com/static/*/*.html
// @include *://www.17yue.com/*/*/*.html
// @include *://dukeba.com/book/*/*/*.shtml
// @include *://www.wenchangshuyuan.com/html/*/*/*.html
// @include *://www.pofeng.net/xiaoshuo/*/*.html
// @include *://www.epzww.com/book/*/*
// @include *://*.xiaoshuokan.com/haokan/*/*.html
// @include *://www.wobudu.com/*/*.html
// @include *://www.qb5.com/xiaoshuo/*/*/*.html
// @include *://www.23us.com/html/*/*/*.html
// @include *://www.23wx.com/html/*/*/*.html
// @include *://www.xs222.com/html/*/*/*.html
// @include *://www.bixiage.com/*/*/*/*.html
// @include *://www.ranwenxiaoshuo.com/files/article/html/*/*/*.html
// @include *://www.ranwenxiaoshuo.com/*/*-*-*.html
// @include *://www.bjxiaoshuo.com/bjxs-*-*/
// @include *://www.59shuku.com/xiaoshuo/*/*.htm
// @include *://www.16kbook.org/Html/Book/*/*/*.shtml
// @include *://www.dixiaoshuo.com/Html/*/*.html
// @include *://www.nieshu.com/Book/*/*/*.shtml
// @include *://www.tlxsw.com/files/article/html/*/*/*.html
// @include *://www.1kanshu.com/files/article/html/*/*/*.html
// @include *://www.uutxt.org/book/*/*/*.html
// @include *://www.5800.cc/*/*/*/*.html
// @include *://www.biquge.com/*/*.html
// @include *://www.biquge.la/book/*/*.html
// @include *://www.qududu.com/book/*/*/*.html
// @include *://www.free97.cn/book/*/*/*.html
// @include *://www.122s.com/book/*/*.html
// @include *://www.123du.net/dudu-*/*/*.html
// @include *://www.123du.cc/dudu-*/*/*.html
// @include *://www.123du.net/book/*/*.html
// @include *://www.hwafa.com/*/*.html
// @include *://www.qmshu.com/html/*/*/*.html
// @include *://dlzw.cc/article-*-*.html
// @include *://www.shushu5.com/read/*/*.html
// @include *://www.xiaoyanwenxue.com/files/article/html/*/*/*.html
// @include *://www.3gsc.com.cn/bookcon/*_*_*
// @include *://www.bj-ibook.cn/book/*/*/*.htm
// @include *://www.baoliny.com/*/*.html
// @include *://www.dajiadu.net/files/article/html/*/*/*.html
// @include *://www.yankuai.com/files/article/html/*/*/*.html
// @include *://www.docin.net/*/*.html
// @include *://www.dushuge.net/html/*/*/*.html
// @include *://www.xunshu.org/xunshu/*/*/*.html
// @include *://www.moneyren.com/book/*/*/*.shtml
// @include *://wemaxfilipino.com/*/*/*.html
// @include *://www.85618892.cn/xiaoshuo/*/*/*.shtml
// @include *://www.bookba.net/Html/Book/*/*/*.html
// @include *://www.moksos.com/*/*/*.html
// @include *://dudu8.net/novel/*/*/*.html
// @include *://www.dawenxue.net/html/*/*/*.html
// @include *://www.yanmoxuan.org/book/*/*/*.html
// @include *://www.duyidu.com/xiaoshuo/*/*/*.html
// @include *://www.69zw.com/xiaoshuo/*/*/*.html
// @include *://www.kan7.com/xiaoshuo/*/*/*.html
// @include *://www.laishu.com/book/*/*/*.shtml
// @include *://www.bxwx.org/b/*/*/*.html
// @include *://www.bxzw.org/*/*/*/*.shtml
// @include *://www.360118.com/html/*/*/*.html
// @include *://www.59to.com/files/article/xiaoshuo/*/*/*.html
// @include *://www.dyzww.com/cn/*/*/*.html
// @include *://www.9wh.net/*/*/*.html
// @include *://www.luoqiu.net/html/*/*/*.html
// @include *://www.luoqiu.com/html/*/*/*.html
// @include *://www.epzw.com/files/article/html/*/*/*.html
// @include *://www.dashubao.co/book/*/*/*.html
// @include *://b.faloo.com/p/*/*.html
// @include *://www.baikv.com/*/*.html
// @include *://www.66721.com/*/*/*.html
// @include *://www.3dllc.com/html/*/*/*.html
// @include *://www.xstxt.com/*/*/
// @include *://www.zzzcn.com/3z*/*/
// @include *://www.zzzcn.com/modules/article/App.php*
// @include *://www.nilongdao.com/book/*/*/*.html
// @include *://xs321.net/*/*/
// @include *://read.guanhuaju.com/files/article/html/*/*/*.html
// @include *://www.book108.com/*/*/*.html
// @include *://5ycn.com/*/*/*.html
// @include *://www.zhaoxiaoshuo.com/chapter-*-*-*/
// @include *://*zbzw.com/*/*.html
// @include *://manghuangji.cc/*/*.html
// @include *://www.aiqis.com/*/*.html
// @include *://www.fftxt.net/book/*/*.html
// @include *://www.5kwx.com/book/*/*/*.html
// @include *://www.uuxiaoshuo.net/html/*/*/*.html
// @include *://www.sanyyo.org/*.html
// @include *://www.chinaisbn.com/*/*/*.html
// @include *://www.caihongwenxue.com/Html/Book/*/*/*.html
// @include *://www.shushuw.cn/shu/*/*.html
// @include *://www.78xs.com/article/*/*/*.shtml
// @include *://www.woaixiaoshuo.com/xiaoshuo/*/*/*.html
// @include *://www.ty2016.com/book/*/*.html
// @include *://wx.ty2016.com/*/*/*.html
// @include *://www.my285.com/*/*/*/*.htm
// @include *://www.5858xs.com/html/*/*/*.html
// @include *://book.58xs.com/html/*/*/*.html
// @include *://book.mihua.net/*/*/*/*.html
// @include *://www.hjwzw.com/Book/Read/*,*
// @include *://www.hjwzw.com/Book/Read/*_*
// @include *://www.365essay.com/*/*.htm
// @include *://www.gengxin8.com/read/*/*.html
// @include *://www.365xs.org/books/*/*/*.html
// @include *://www.wuruo.com/files/article/html/*/*/*.html
// @include *://*.8shuw.net/book/*/*.html
// @include *://www.pashuw.com/BookReader/*/*.html
// @include *://read.shanwen.com/html/*/*/*.html
// @include *://www.qqxs.cc/xs/*/*/*.html
// @include *://www.69shu.com/txt/*/*
// @include *://www.e8zw.com/book/*/*/*.html
// @include *://www.biquge.tw/*_*/*.html
// @include *://www.8535.org/*/*/*.html*
// @include *://www.yfzww.com/books/*/*/*.htm
// @include *://www.lewen8.com/lw*/*.html
// @include *://www.pinwenba.com/read/*/*.html
// @include *://down1.qidian.com/bookall/*.htm*
// @include *://www.77nt.com/*/*.html
// @include *://www.quanbenba.com/yuedu/*/*/*.html
// @include *://*.sto.cc/*-*/
// @include *://www.151xs.com/wuxiazuoxiong/*/chapter/*/
// @include *://www.qududu.net/book/*/*/*.html
// @include *://www.shumilou.co/*
// @include *://wanshu.com/*
// @include *://www.fenghuaju.com/*/*
// @include *://www.dashubao.cc/*/*
// @include *://www.yunlaige.com/*
// @include *://www.aiquxs.com/*
// @include *://www.qingdou.cc/chapter*
// @include *://www.shuyuewu.com/kan*
// @include *://www.1553.net/*/*
// @include *://www.269s.com/*/*/*
// @include *://www.33yq.com/read/*/*/*.shtml
// @include *://www.50zw.co/book_*/*.html
// @include *://www.bqg5200.com/xiaoshuo/*/*/*.html
// @include *://www.50zw.la/book_*/*.html
// @include *://www.qu.la/book/*/*.html
// @include *://www.luoqiu.com/read/*/*.html
// @include *://www.biqugezw.com/*/*.html
// @include *://www.54tushu.com/book_library/chaptershow/theId/*.html
// @include *://www.snwx8.com/book/*/*/*.html
// @include *://read.qidian.com/chapter/*
// @include *://www.23zw.me/olread/*/*/*.html
// @include *://www.piaotian.com/html/*/*/*.html
// @include *://www.dhzw.org/book/*/*/*.html
// @include *://www.biqiuge.com/book/*/*.html
// @include *://www.baquge.com/files/article/html/*/*/*.html
// @include *://www.qu.la/book/*/*.html
// @include *://www.bxwx9.org/b/*/*/*.html
// @include *://www.miaobige.com/*/*/*.html
// @include *://www.remenxs.com/du_*/*/
// @include *://www.shuhai.com/read/*/*.html
// @include *://www.hbooker.com/chapter/book_chapter_detail/*
// @include *://www.mianhuatang.la/*/*/*.html
// @include *://www.paomov.com/*/*/*.html
// @include *://www.moyuanwenxue.com/xiaoshuo/*/*/*.htm
// @exclude */List.htm
// @exclude */List.html
// @exclude */List.shtml
// @exclude */index.htm
// @exclude */index.html
// @exclude */index.shtml
// @exclude */Default.htm
// @exclude */Default.html
// @exclude */Default.shtml
// @run-at document-end
// ==/UserScript==
var isChrome = !!window.chrome;
var isFirefox = navigator.userAgent.indexOf("Firefox") != -1;
// 其它设置
var config = {
soduso: false, // www.sodu.so 跳转
content_replacements: true, // 小说屏蔽字修复
fixImageFloats: true, // 图片居中修正
paragraphBlank: true, // 统一段落开头的空格为 2个全角空格
end_color: "#666666", // 最后一页的链接颜色
PRELOADER: true, // 提前预读下一页
};
var READER_AJAX = "reader-ajax"; // 内容需要 ajax 的 className
// Unicode/2000-2FFF:http://zh.wikibooks.org/wiki/Unicode/2000-2FFF
// Unicode/F000-FFFF:https://zh.wikibooks.org/wiki/Unicode/F000-FFFF
// replace 中的简写
var CHAR_ALIAS = {
'\\P': '[\\u2000-\\u2FFF\\u3004-\\u303F\\uFE00-\\uFF60\\uFFC0-\\uFFFF]', // 小说中添加的特殊符号
};
// ===== 自动尝试的规则 =====
var Rule = {
titleRegExp: /第?\s*[一二两三四五六七八九十○零百千万亿0-91234567890]{1,6}\s*[章回卷节折篇幕集]/i,
titleReplace: /^章节目录|^文章正文|^正文|全文免费阅读|最新章节|\(文\)/,
// nextRegExp: /[上前下后][一]?[页张个篇章节步]/,
nextSelector: "a[rel='next'], a:contains('下一页'), a:contains('下一章'), a:contains('下一节'), a:contains('下页')",
prevSelector: "a[rel='prev'], a:contains('上一页'), a:contains('上一章'), a:contains('上一节'), a:contains('上页')",
// 忽略的下一页链接,匹配 href
nextUrlIgnore: [
/(?:(?:index|list|last|LastPage|end)\.)|BuyChapterUnLogin|^javascript:/i,
/BookReader\/vip,/i,
/BookReader\/LastPageNew\.aspx/i,
/read\.qidian\.com\/BookReader\/\d+,0\.aspx$/i,
/read\.qidian\.com\/$/i,
/free\.qidian\.com\/Free\/ShowBook\.aspx\?bookid=/i,
/book\.zongheng\.com\/readmore/i,
/www\.shumilou\.com\/to-n-[a-z]+-\d+\.html/i,
/\/0\.html$/i,
],
nextUrlCompare: /\/\d+(_\d+)?\.html?$|\/wcxs-\d+-\d+\/$|chapter-\d+\.html$|\/\d+_\d+\/$/i, // 忽略的下一页链接(特殊),跟上一页比较
// 按顺序匹配,匹配到则停止。econtains 完全相等
indexSelectors: ["a[href='index.html']", "a:contains('返回书目')", "a:contains('章节目录')", "a:contains('章节列表')",
"a:econtains('最新章节')", "a:contains('回目录')","a:contains('回书目')", "a:contains('目 录')", "a:contains('目录')"],
contentSelectors: ["#pagecontent", "#contentbox", "#bmsy_content", "#bookpartinfo", "#htmlContent",
"#text_area", "#chapter_content", "#chapterContent", "#partbody",
"#article_content", "#BookTextRead", "#booktext", "#BookText", "#readtext", "#text_c", "#txt_td", "#TXT", "#txt", "#zjneirong",
".novel_content", ".readmain_inner", ".noveltext", ".booktext", ".yd_text2",
"#contentTxt", "#oldtext", "#a_content", "#contents", "#content2", "#contentts", "#content", ".content"],
// (测试)尝试查找书名。顶部章节导航的最后一个链接可能是书名。
bookTitleSelector: ".h1title > .shuming > a[title], .chapter_nav > div:first > a:last",
contentRemove: "script, iframe", // 内容移除选择器
removeLineRegExp: /<p>[ \s。;,!\.∷〖]*<\/p>/g, // 移除只有一个字符的行
// 以下不常改
replaceBrs: /(<br[^>]*>[ \n\r\t]*){1,}/gi, // 替换为<p>
};
// ===== 自定义站点规则 =====
Rule.specialSite = [
// 详细版规则示例。注:该网站已无法访问。
{siteName: "泡书吧", // 站点名字... (可选)
url: "^http://www\\.paoshu8\\.net/Html/\\S+\\.shtm$", // // 站点正则... (~~必须~~)
// 获取标题
titleReg: /(.*?)最新章节 [-_\\\/](.*?)[-_\/].*/, // 书籍标题、章节标题正则 (可选)
titlePos: 0, // 书籍标题位置:0 或 1 (可选,默认为 0)
titleSelector: "#title h1",
indexSelector: "a:contains('回目录')", // 首页链接 jQuery 选择器 (不填则尝试自动搜索)
prevSelector: "a:contains('翻上页')", // 上一页链接 jQuery 选择器 (不填则尝试自动搜索)
nextSelector: "a:contains('翻下页')", // 下一页链接 jQuery 选择器 (不填则尝试自动搜索)
// 获取内容
contentSelector: "#BookText", // 内容 jQuery 选择器 (不填则尝试自动搜索)
useiframe: false, // (可选)下一页加载是否使用 iframe
// mutationSelector: "#chaptercontainer", // (可选)内容生成监视器
// 对内容的处理
contentHandle: false, // (可选)是否对内容进行特殊处理,诸如拼音字修复等,诸如起点等网站可禁用
fixImage: true, // (可选),图片居中,不分大小
contentReplace: /(\*W|(w|\(w).{10,25}(吧\*|)|\))|看小说就上|本书首发|泡.{1,6}吧|百度搜索阅读最新最全的小说|http:\/\/www.paoshu8.com\/|无弹窗/g, // 需要移除的内容正则 (可选)
contentPatch: function(fakeStub){ // (可选)内容补丁。解决翻页是脚本的情况
var $next = fakeStub.find('#LinkMenu');
$next.html($next.html().replace(/<script>ShowLinkMenu.*?(<a.*?a>).*?(<a.*?a>).*?script>/,'$1$2') +
'<a href=\'List.shtm\'>回目录</a>');
}
},
// 特殊站点,需再次获取且跨域。添加 class="reader-ajax",同时需要 src, charset
{siteName: '起点新版',
url: 'http://read\\.qidian\\.com/BookReader/.*\\.aspx',
bookTitleSelector: '.story_title .textinfo a:nth-child(1)',
titleSelector: '.story_title h1',
prevSelector: '#pagePrevRightBtn',
nextSelector: '#pageNextRightBtn',
indexSelector: function() {
return location.href.replace(/,.*?\.aspx$/, '.aspx').replace('BookReaderNew', 'BookReader');
},
mutationSelector: "#chaptercontainer", // 内容生成监视器
mutationChildCount: 1,
contentSelector: '#content, .bookreadercontent',
contentRemove: 'a[href="http://www.qidian.com"]',
contentReplace: [
'手机用户请到m.qidian.com阅读。'
],
contentPatch: function(fakeStub){
fakeStub.find('script[src$=".txt"]').addClass('reader-ajax');
},
},
{siteName: "起点中文、起点女生、起点文学",
url: "^http://(www|read|readbook|wwwploy|cga|big5ploy)\\.(qidian|qdmm|qdwenxue)\\.com/BookReader/.*",
// titleReg: "小说:(.*?)(?:独家首发)/(.*?)/.*",
titleSelector: "#lbChapterName",
bookTitleSelector: ".page_site > a:last",
// contentSelector: "#hdContent",
nextUrl: function($doc){ // 为了避免起点某次改版后把1页拆成2页,然后造成重复载入第一页的情况
var html = $doc.find('script:contains(nextpage=)').html();
if (!html) return;
var m = html.match(/nextpage='(.*?)'/);
if (m) return m[1];
},
prevUrl: function($doc){
var html = $doc.find('script:contains(prevpage=)').html();
if (!html) return;
var m = html.match(/prevpage='(.*?)'/);
if (m) return m[1];
},
contentReplace: {
"\\[img=(.*)\\]": "<p><img src='$1'></p><p>",
"\\[+CP.*(http://file.*\\.jpg)\\]+": "<p><img src='$1'></p><p>",
"\\[bookid=(\\d+),bookname=(.*?)\\]": "<a href='http://www.qidian.com/Book/$1.aspx'>$2</a>",
"www.cmfu.com发布|起点中文网www.qidian.com欢迎广大书友光临阅读.*": "",
'(<p>\\s+)?<a href="?http://www.(?:qidian|cmfu).com"?>起点中文网.*': '',
'([\\u4e00-\\u9fa5])[%¥]+([\\u4e00-\\u9fa5])': '$1$2', // 屏蔽词修正,例如:风%%骚
},
contentRemove: "span[id^='ad_'], .read_ma",
contentPatch: function(fakeStub){
fakeStub.find('script[src$=".txt"]').addClass('reader-ajax');
},
},
{siteName: "起点中文网免费频道",
url: "^http://free\\.qidian\\.com/Free/ReadChapter\\.aspx",
titleSelector: ".title > h3",
bookTitleSelector: ".site_rect > a:last",
contentSelector: "#chapter_cont, #content",
contentRemove: ".nice_books",
contentReplace: {
"\\[img=(.*)\\]": "<p><img src='$1'></p><p>",
"\\[+CP.*(http://file.*\\.jpg)\\]+": "<p><img src='$1'></p><p>",
"\\[bookid=(\\d+),bookname=(.*?)\\]": "<a href='http://www.qidian.com/Book/$1.aspx'>$2</a>",
"www.cmfu.com发布|起点中文网www.qidian.com欢迎广大书友光临阅读.*": "",
'(<p>\\s+)?<a href="?http://www.(?:qidian|cmfu).com"?>起点中文网.*': ''
},
contentPatch: function(fakeStub) {
fakeStub.find('#chapter_cont, #content > script:first').addClass('reader-ajax');
}
},
{siteName: "创世中文网",
url: "^http://(?:chuangshi|yunqi)\\.qq\\.com/|^http://dushu\\.qq\\.com/read.html\\?bid=",
bookTitleSelector: '.bookNav > a:last()',
titleSelector: '.story_title > h1',
nextSelector: '#rightFloatBar_nextChapterBtn',
prevSelector: '#rightFloatBar_preChapterBtn',
indexSelector: function() {
var m = location.href.match(/\/bk\/\w+\/(.*?)-r-\d+.html/);
if (m) {
return 'http://chuangshi.qq.com/bk/ls/' + m[1] + '-l.html';
} else {
return 'http://chuangshi.qq.com/bk/ls/' + unsafeWindow.bid + '-l.html';
}
},
contentSelector: ".bookreadercontent",
contentHandle: false,
mutationSelector: "#chaptercontainer", // 内容生成监视器,第一次运行用到,以后用下面的 getContent 函数
mutationChildCount: 1,
startFilter: function() {
// 下一页需要提前加 1
unsafeWindow.uuid = parseInt(unsafeWindow.uuid) + 1 + '';
},
getContent: function(fakeStub, callback) { // this 指 parser
var done = function (data) {
unsafeWindow.uuid = data.nextuuid; // 给下一页用
callback({
html: getPageUrlHtml(data.preuuid, data.nextuuid) + data.Content
});
};
exportFunction(done, unsafeWindow, { defineAs: "gm_mnr_cs_callback" });
unsafeWindow.CS.page.read.main.getChapterContent(unsafeWindow.bid, unsafeWindow.uuid, unsafeWindow.gm_mnr_cs_callback);
function getPageUrlHtml(preChapterUUID, nextChapterUUID) {
var preReadUrl = _getReadPageUrl(preChapterUUID),
nextReadUrl = _getReadPageUrl(nextChapterUUID);
return '<a id="rightFloatBar_preChapterBtn" href="' + preReadUrl + '">上一页</a>' +
'<a id="rightFloatBar_nextChapterBtn" href="' + nextReadUrl + '">下一页</a>' + '\n';
}
function _getReadPageUrl(uuid) {
if (!uuid) {
return 'javascript:void(0);';
}
var url = location.href.replace(/[?|#].*/gi, '');
return url.replace(/(\d)+\.html/, uuid + '.html');
}
},
},
{siteName: "纵横中文网",
url: "^http://book\\.zongheng\\.com/\\S+\\/\\d+\\.html$",
contentHandle: false,
// titleReg: "(.*?)-(.*)",
titleSelector: "em[itemprop='headline']",
bookTitleSelector: ".nav>a:last",
contentPatch: function(fakeStub){
fakeStub.find('.watermark').remove();
// 给第几章添加空格
var chapterTitle = fakeStub.find(".tc > h2").text();
var chapterTitle1 = fakeStub.find(".tc > h2 em").text();
if(chapterTitle1) {
chapterTitle = chapterTitle.replace(chapterTitle1, " ") + chapterTitle1;
}
fakeStub.find("title").text(
fakeStub.find(".tc > h1").text() + "-" + chapterTitle
);
}
},
{siteName: "晋江文学网",
url: /^http:\/\/www\.jjwxc\.net\/onebook\.php\S*/,
titleReg: /《(.*?)》.*ˇ(.*?)ˇ.*/,
indexSelector: ".noveltitle > h1 > a",
contentSelector: '.noveltext',
contentHandle: false,
contentRemove: 'font[color], hr',
contentPatch: function(fakeStub){
fakeStub.find('h2').remove();
fakeStub.find('#six_list, #sendKingTickets').parent().remove();
fakeStub.find("div.noveltext").find("div:first, h1, div[style]:last").remove();
}
},
{siteName: "潇湘书院",
url: "^http://www\\.xxsy\\.net/books/.*\\.html",
titleReg: "(.*?) (.*)",
contentSelector: "#zjcontentdiv",
nextSelector: "a[title='阅读下一章节']",
contentHandle: false,
contentReplace: "本书由潇湘书院首发,请勿转载!",
contentPatch: function(fakeStub){
fakeStub.find("title").text(fakeStub.find('meta[name="keywords"]').attr("content"));
}
},
{siteName: "逐浪",
url: /^http:\/\/book\.zhulang\.com\/.*\.html/,
titleReg: /(.*?)-(.*)/,
contentSelector: "#readpage_leftntxt",
contentHandle: false,
contentPatch: function(fakeStub){
var title = fakeStub.find(".readpage_leftnzgx a:first").text() + "-" +
fakeStub.find(".readpage_leftntit").text();
fakeStub.find('title').html(title);
}
},
{siteName: "小说阅读网",
url: "http://www\\.readnovel\\.com/novel/.*\\.html",
titleSelector: ".bgtop > h1",
bookTitleSelector: ".nownav > a:eq(4)",
contentSelector: "#article, .zhangjie",
contentRemove: "div[style], .miaoshu, .zhichi, .bottomAdbanner",
contentPatch: function(fakeStub) {
// 删除标题不需要的部分
fakeStub.find(".bgtop > h1 > span").remove();
}
},
// {siteName: "磨铁",
// url: 'http://www.motie.com/book/\\d+_\\d+',
// contentSelector: '.page-content'
// },
{siteName: "百度贴吧(手动启用)",
enable: false,
url: /^http:\/\/tieba\.baidu.com\/p\//,
titleSelector: "h1.core_title_txt",
bookTitleSelector: ".card_title_fname",
nextSelector: false,
indexSelector: 'a.card_title_fname',
prevSelector: false,
contentSelector: "#j_p_postlist",
contentRemove: "#sofa_post, .d_author, .share_btn_wrapper, .core_reply, .j_user_sign",
style: ".clear { border-top:1px solid #cccccc; margin-bottom: 50px; visibility: visible !important;}", // 显示楼层的分割线
},
// {siteName: "天涯在线书库(部分支持)",
// url: /www\.tianyabook\.com\/.*\.htm/,
// titleSelector: ".max, h1:first",
// bookTitleSelector: "td[width='70%'] > a[href$='index.htm']",
// contentSelector: "div > span.middle, #texts",
// contentHandle: false,
// },
{siteName: "天涯书库",
url: /www\.ty2016\.com\/.+\.html$/,
titleSelector: "h1",
bookTitleSelector: ".crumb a[href='./']",
indexSelector: "td a[href='./']",
contentSelector: "#main",
contentRemove: '.crumb, table',
contentHandle: false,
},
// {siteName: "易读",
// url: "http://www.yi-see.com/read_\\d+_\\d+.html",
// contentSelector: 'table[width="900px"][align="CENTER"]'
// },
{siteName: "燃文",
url: /^http:\/\/www\.(?:ranwen\.cc|64mi\.com)\/.*\.html$/,
titleReg: /(.*?)-(.*?)-燃文/,
contentSelector: "#oldtext, #contents",
contentRemove: "div[style], script",
contentReplace: [
/\(( )*\)/g,
/最快更新78小说|\(?百度搜.\)|访问下载tXt小说|百度搜\|索|文\|学|文学全文.字手打|\(( )+|牛过中文..hjsm..首发.转载请保留|\[本文来自\]|♠思♥路♣客レ|※五月中文网 5y ※|无错不跳字|最快阅读小说大主宰.*|跟我读H-u-n 请牢记|非常文学|关闭<广告>|w w.*|”娱乐秀”|更多精彩小[说說].*|高速更新/g,
/[\(\*◎]*(百度搜)?文.?[學学].?[馆館][\)\*)]*|\(百度搜\)/g,
/提供无弹窗全文字在线阅读.*|高速首发.*如果你觉的本章节还不错的话.*/g,
/书网∷更新快∷无弹窗∷纯文字∷.t!。/g,
/一秒记住,本站为您提供热门小说免费阅读。/g,
/\(更新速度最快记住即可找到\)|芒果直播网|.mgzhibo .|去 读 读|看小说就到/g,
]
},
{siteName: "燃文小说网",
url: "http://www\\.ranwenxiaoshuo\\.com/files/article/html/\\d+/\\d+/\\d+\\.html|http://www\\.ranwenxiaoshuo\\.com/\\w+/\\w+-\\d+-\\d+\\.html",
titleReg: /(.*?)最新章节(.*?)在线阅读.*/,
contentSelector: "#fontsize",
contentReplace: "天才一秒记住[\\s\\S]+为您提供精彩小说阅读。",
},
{siteName: "燃文小说",
url: "http://www\\.ranwen\\.net/files/article/\\d+/\\d+/\\d+\\.html",
titleReg: "(\\S+) (.*) - 燃文小说",
contentReplace: "\\(.*燃文小说.*\\)|【 注册会员可获私人书架,看书更方便!永久地址: 】 "
},
{siteName: "无错小说网",
url: /^http:\/\/www\.(?:wcxiaoshuo|xiaoshuoz|quledu)\.com\/wcxs[-\d]+\//,
titleReg: /(.*?)最新章节.*?-(.*?)-.*/,
titlePos: 1,
nextSelector: "a#htmlxiazhang",
prevSelector: "a#htmlshangzhang",
indexSelector: "a#htmlmulu",
contentReplace: [
'ilo-full-src="\\S+\\.jpg" ',
{
'(<center>)?<?img src..(http://www.wcxiaoshuo.com)?(/sss/\\S+\\.jpg).(>| alt."\\d+_\\d+_\\d*\\.jpg" />)(</center>)?': '$3',
"/sss/da.jpg": "打", "/sss/maws.jpg": "吗?", "/sss/baw.jpg": "吧?", "/sss/wuc.jpg": "无", "/sss/maosu.jpg": ":“", "/sss/cuow.jpg": "错", "/sss/ziji.jpg": "自己", "/sss/shenme.jpg": "什么", "/sss/huiqub.jpg": "回去", "/sss/sjian.jpg": "时间", "/sss/zome.jpg": "怎么", "/sss/zhido.jpg": "知道", "/sss/xiaxin.jpg": "相信", "/sss/faxian.jpg": "发现", "/sss/shhua.jpg": "说话", "/sss/dajiex.jpg": "大姐", "/sss/dongxi.jpg": "东西", "/sss/erzib.jpg": "儿子", "/sss/guolair.jpg": "过来", "/sss/xiabang.jpg": "下班", "/sss/zangfl.jpg": "丈夫", "/sss/dianhua.jpg": "电话", "/sss/huilaim.jpg": "回来", "/sss/xiawu.jpg": "下午", "/sss/guoquu.jpg": "过去", "/sss/shangba.jpg": "上班", "/sss/mingtn.jpg": "明天", "/sss/nvrenjj.jpg": "女人", "/sss/shangwo.jpg": "上午", "/sss/shji.jpg": "手机", "/sss/xiaoxinyy.jpg": "小心", "/sss/furene.jpg": "夫人", "/sss/gongzih.jpg": "公子", "/sss/xiansg.jpg": "先生", "/sss/penyouxi.jpg": "朋友", "/sss/xiaoje.jpg": "小姐", "/sss/xifup.jpg": "媳妇", "/sss/nvxudjj.jpg": "女婿", "/sss/xondi.jpg": "兄弟", "/sss/lagong.jpg": "老公", "/sss/lapo.jpg": "老婆", "/sss/meimeid.jpg": "妹妹", "/sss/jiejiev.jpg": "姐姐", "/sss/jiemeiv.jpg": "姐妹", "/sss/xianggx.jpg": "相公", "/sss/6shenumev.jpg": "什么", "/sss/cuoaw.jpg": "错", "/sss/fpefnyoturxi.jpg": "朋友", "/sss/vfsjgigarn.jpg": "时间", "/sss/zzhiedo3.jpg": "知道", "/sss/zibjib.jpg": "自己", "/sss/qdonglxi.jpg": "东西", "/sss/hxiapxint.jpg": "相信", "/sss/fezrormre.jpg": "怎么", "/sss/nvdrfenfjfj.jpg": "女人", "/sss/jhiheejeieev.jpg": "姐姐", "/sss/xdifagojge.jpg": "小姐", "/sss/gggugolgair.jpg": "过来", "/sss/maoashu.jpg": ":“", "/sss/gnxnifawhu.jpg": "下午", "/sss/rgtugoqgugu.jpg": "过去", "/sss/khjukilkaim.jpg": "回来", "/sss/gxhigfadnoxihnyy.jpg": "小心", "/sss/bkbskhhuka.jpg": "说话", "/sss/xeieavnfsg.jpg": "先生", "/sss/yuhhfuiuqub.jpg": "回去", "/sss/pdianphua.jpg": "电话", "/sss/fabxianr.jpg": "发现", "/sss/feilrpto.jpg": "老婆", "/sss/gxronfdri.jpg": "兄弟", "/sss/flfaggofng.jpg": "老公", "/sss/tymyigngtyn.jpg": "明天", "/sss/dfshfhhfjfi.jpg": "手机", "/sss/gstjhranjgwjo.jpg": "上午", "/sss/fmgeyimehid.jpg": "妹妹", "/sss/gxgihftutp.jpg": "媳妇", "/sss/cerztifb.jpg": "儿子", "/sss/gfxgigagbfadng.jpg":"下班", "/sss/gstjhranjg.jpg":"下午", "/sss/hjeirerm6eihv.jpg": "姐妹", "/sss/edajihexr.jpg": "大姐", "/sss/wesfhranrrgba.jpg": "上班", "/sss/gfognggzigh.jpg": "公子", "/sss/frurtefne.jpg": "夫人", "/sss/fzagnggfbl.jpg": "丈夫", "/sss/nvdxfudfjfj.jpg": "女婿", "/sss/xdidafnggx.jpg": "相公", "/sss/zenme.jpg": "怎么", "/sss/gongzi.jpg": "公子", "/sss/ddefr.jpg": "",
},
".*ddefr\\.jpg.*|无(?:错|.*cuoa?w\\.jpg.*)小说网不[少跳]字|w[a-z\\.]*om?|.*由[【无*错】].*会员手打[\\s\\S]*",
"是 由",
"无错不跳字|无广告看着就是爽!|一秒记住.*|全文免费阅读.*|8 9 阅阅 读 网|看小说最快更新|“小#说看本书无广告更新最快”",
"[\\x20-\\x7e》]?无(?:.|>)错.小说.{1,2}[Ww]+.*?[cC][oO][mM]",
"<无-错>",
"—无—错—小说",
"\\+无\\+错\\+",
"&无&错&小说",
"无错小说 www.quled[Uu].com",
],
contentPatch: function(fakeStub){
// 去除内容开头、结尾的重复标题
var title = fakeStub.find("#htmltimu").text().replace(/\s+/, "\\s*");
var content = fakeStub.find("#htmlContent");
content.find("div[align='center']").remove();
if(title.match(/第\S+章/)){
content.html(content.html().replace(new RegExp(title), "").replace(new RegExp(title), ""));
}
}
},
{siteName: '凤舞文学网',
url: '^http://www\\.wenxue8\\.org/html/\\d+/\\d+/\\d+\\.html',
contentReplace: [
{
'<img src="/keywd/R43.gif">':'爱', '<img src="/keywd/A13.gif">': '情', '<img src="/keywd/D10.gif">': '床',
'<img src="/keywd/Y19.gif">': '奸', '<img src="/keywd/H21.gif">': '屁', '<img src="/keywd/Z23.gif">': '逼',
'<img src="/keywd/G42.gif">': '身', '<img src="/keywd/Y2.gif">':'性', '<img src="/keywd/D32.gif">':'热',
'<img src="/keywd/I44.gif">':'挺', '<img src="/keywd/H30.gif">':'贱', '<img src="/keywd/H25.gif">':'荡',
'<img src="/keywd/V7.gif">':'肉', '<img src="/keywd/O22.gif">':'吮', '<img src="/keywd/H9.gif">':'春',
'<img src="/keywd/K36.gif">':'日', '<img src="/keywd/O15.gif">':'胸', '<img src="/keywd/S31.gif">':'欲',
'<img src="/keywd/F20.gif">':'射', '<img src="/keywd/N12.gif">':'禁', '<img src="/keywd/R26.gif">':'殿',
'<img src="/keywd/X6.gif">':'诱', '<img src="/keywd/U46.gif">': '娇',
'<img src="/keywd/M24.gif">': '操', '<img src="/keywd/B4.gif">':'骚', '<img src="/keywd/O3.gif">':'阴',
}
]
},
{siteName: "书迷楼",
url: /^http:\/\/www\.shumilou\.(?:co|us)\/.*html$/,
titleReg: /(.*) (.*?) 书迷楼/,
titlePos: 1,
contentSelector: "#content",
contentRemove: 'a, center',
contentReplace: [
'div lign="ener">|.*更多章节请到网址隆重推荐去除广告全文字小说阅读器',
'起点中文网www.qidian.com欢迎广大书.*',
'书迷楼最快更新.*',
'更新最快最稳定',
'\\(\\.\\)R?U',
{'<p>\\?\\?': '<p>'},
'\\(www.\\)',
'章节更新最快',
'-乐-读-小-说--乐读x-',
'《乐》《读》小说.乐读.Com',
'纯文字在线阅读本站域名手机同步阅读请访问',
'-优-优-小-说-更-新-最-快-www.uuxs.cc-',
'\\(本章免费\\)',
'书迷楼www.shumilou.co',
],
fixImage: true,
contentPatch: function(fakeStub){
fakeStub.find("#content").find("div.title:last")
.appendTo(fakeStub.find('body'));
fakeStub.find("#content").find("div.title, p > b, div[style]").remove();
}
},
{siteName: "冰火中文",
url: /^http:\/\/www\.binhuo\.com\/html\/[\d\/]+\.html$/,
titleReg: /(.*?)最新章节,(.*?)-.*/,
fixImage: true,
contentRemove: 'font[color="red"]',
contentReplace: {
"<冰火#中文.*|冰火中文 (www.)?binhuo.com(?:【首发】|)|冰.火.中文|绿色小说|lvsexs|冰火中文": "",
"LU5.coM|lU5.com|LU5.com":"",
"([^/])www\\.binhuo\\.com(?:\\.com|)": "$1",
"\\(.*?平南文学网\\)": "",
},
contentPatch: function(fakeStub){
fakeStub.find("#BookText").append(fakeStub.find("img.imagecontent"));
}
},
{siteName: "百晓生",
url: /^http:\/\/www\.bxs\.cc\/\d+\/\d+\.html/,
titleReg: /(.*?)\d*,(.*)/,
contentRemove: 'a, #txtright',
contentReplace: [
/一秒记住【】www.zaidu.cc,本站为您提供热门小说免费阅读。/ig,
/(文 學馆w ww.w xguan.c om)/ig,
/(百晓生更新最快最稳定\)/g,
/\((?: )*(?:无弹窗)?全文阅读\)/ig,
/\[<a.*?首发\[百晓生\] \S+/ig,
/高速首发.*本章节是地址为/ig,
/\/\/(?: |访问下载txt小说|高速更新)+\/\//ig,
/(www\.)?bxs\.cc|www\.bxs(\.com)?/ig,
/百晓生.不跳字|不跳字。|更新快纯文字/ig,
/\.\[,!\]/ig,
/(未完待续 http:\/\/www.Bxs.cc 89免费小说阅《百晓生文学网》)/g,
/〖百晓生∷.*〗|《?百晓生文学网》?|最快阅读小说大主宰,尽在百晓生文学网.*|ww.x.om|欢迎大家来到.*?bxs\.cc|百晓生阅读最新最全的小说.*|百晓生网不少字|站长推荐.*|文字首发|百.晓.生.|关闭.*广告.*|飘天文学|本站域名就是.*|\(.{0,5}小说更快更好.{0,5}\)|(请在)?百度搜索.*|一秒记住.*为您提供精彩小说阅读.|百晓生|¤本站网址:¤|\/\/ 访问下载txt小说\/\/◎◎|纯站点\\".*值得收藏的/ig,
/文[学學][馆館]|www\.biquge\.cc|(http:\/\/)?www\.Bxs\.cc|(请牢记)?soudu.org/ig,
/请搜索,小说更好更新更快!|最快文字更新无弹窗无广|\(即可找到本站\)|无广告看着就是爽!|更多全本txt小说请到下载|∷更新快∷∷纯文字∷/ig,
/永久网址,请牢记!/ig,
/ ><\/p>/ig,
],
},
{siteName: "浩奇文学网",
url: /^http:\/\/www\.haoqi99\.com\/.*\.shtml$/,
titleReg: /^(.*?)--(.*?)-/,
},
{siteName: "书河小说网",
url: /^http:\/\/www\.shuhe\.cc\/\d+\/\d+/,
titleReg: "([^\\d]+)\\d*,(.*?)_",
contentSelector: "#TXT",
contentReplace: /一秒记住.*为您提供精彩小说阅读.|\{请在百度搜索.*首发阅读\}|(书河小说网.*?无弹窗)|wxs.o|ww.x.om|[\[【\(].{1,30}[\]\)】]|ff37;.*|书河小说网高速首发.*|TXT下载|全文阅读|第一书河小说网|百书斋.*|首发来自书河小说网|本书最新章节|书河小说网/ig,
},
{siteName: "爱收藏",
url: /http:\/\/www\.aishoucang\.com\/\w+\/\d+\.html/,
titleReg: "(.*?)-(.*?)-爱收藏",
contentSelector: "#zhutone",
contentReplace: {
"<a[^>]*>(.*?)</a>": "$1",
".爱收藏[^<]*": ""
}
},
{siteName: "木鱼哥",
url: /http:\/\/(www\.)?muyuge\.(com|net)\/\w+\/\d+\.html/,
titleSelector: "#yueduye h1",
bookTitleSelector: ".readerNav > li > a:last",
indexSelector: ".readerFooterPage a[title='(快捷:回车键)']",
// useiframe: true,
// mutationSelector: "#content",
// mutationChildCount: 1,
nextSelector: 'a:contains(下章)',
prevSelector: 'a:contains(上章)',
indexSelector: 'a:contains(目录)',
contentRemove: ".vote",
contentReplace: {
"<a[^>]*>(.*?)</a>": "$1",
"看更新最快的小说就搜索—— 木鱼哥——无弹窗,全文字": "",
"【看最新小说就搜索.*全文字首发】": "",
"<p>.*?无弹窗</p>":"",
"bb\\.king|【木 鱼 哥 .*?】|【一秒钟记住本站:muyuge.com.*木鱼哥】":"",
"——推荐阅读——[\\s\\S]+": "",
"【\\s*木\\s*鱼\\s*哥.*?】":"",
"div>|<-》": "",
"\\(.pn. 平南\\)": "",
},
startFilter: function() {
clearInterval(unsafeWindow.show);
}
},
{siteName: "追书网",
url: "^http://www\\.zhuishu\\.net/files/article/html/.*\\.html",
titleReg: /(?:正文 )?(.*) (\S+) \S+ - .*/,
titlePos: 1,
indexSelector: ".pagebottom>a:contains('目录')",
nextSelector: ".pagebottom>a:contains('下一页')",
prevSelector: ".pagebottom>a:contains('上一页')",
fixImage: true,
contentSelector: "#content",
contentReplace: {
"([^/])www\\.ZhuisHu\\.net": "$1",
},
contentPatch: function(fakeStub){
fakeStub.find("#content > .title, #content > .pagebottom").appendTo(fakeStub.find("body"));
fakeStub.find("#content").find("center, b:contains('最快更新')").remove();
}
},
{siteName: "猪猪岛小说",
url: "http://www\\.zhuzhudao\\.(?:com|cc)/txt/",
titleReg: "(.*?)最新章节-(.*?)-",
contentReplace: /[“"”]?猪猪岛小说.*|<\/?a[^>]+>|w+\.zhuZhuDao\.com|看更新最快的.*/ig
},
{siteName: "逸名文学屋",
url: "http://(bbs\\.vyming|www\\.9imw)\\.com/novel-read-\\d+-\\d+\\.html",
contentSelector: "#showcontent",
bookTitleSelector: ".headinfo a:first",
contentRemove: "p:contains(精品推荐:), p:contains(,免费小说阅读基地!), a",
contentReplace: [
"逸名文学屋:"
]
},
{siteName: "奇书屋",
url: "http://www.qishuwu.com/\\w+/\\d+/",
titleReg: "(.*)_(.*)_.*_奇书屋",
},
{siteName: "17k小说网",
url: /^http:\/\/\S+\.17k\.com\/chapter\/\S+\/\d+\.html$/,
titleReg: /(.*?)-(.*?)-.*/,
contentSelector: "#chapterContent",
contentRemove: "#authorSpenk, .like_box, #hotRecommend, .ct0416, .recent_read, div[style], #miniVoteBox"
},
{siteName: "看下文学",
url: "^http://www\\.kanxia\\.net/k/\\d*/\\d+/\\d+\\.html$",
titleReg: /(.*?)-(.*)TXT下载_看下文学/,
contentReplace: /看下文学/g
},
{siteName: "青帝文学网",
url: /^http:\/\/www\.qingdi\.com\/files\/article\/html\/\d+\/\d+\/\d+\.html$/,
titleReg: /(.*?)最新章节_(.*?)_青帝文学网_.*/
},
{siteName: "侠客中文网",
url: /^http:\/\/www\.xkzw\.org\/\w+\/\d+\.html/,
contentSelector: ".readmain_inner .cont",
contentPatch: function(fakeStub){
fakeStub.find('title').html(fakeStub.find('.readmain_inner h2').text());
}
},
{siteName: "ChinaUnix.net",
url: /^http:\/\/bbs\.chinaunix\.net\/thread-.*\.html/,
contentSelector: ".t_f:first"
},
{siteName: "123du 小说",
url: /^http:\/\/www\.123du\.(?:net|cc)\//,
titleReg: "(.*)-(.*) 百家乐",
titlePos: 1,
contentSelector: "#content, #contents",
contentReplace: "一秒记住.www.*|小说最新更新,来123读书www.123du.net",
contentRemove: "a",
contentPatch: function(fakeStub){
var content = fakeStub.find("#DivContentBG").html().match(/第\d*页([\s\S]*)一秒记住/)[1];
$('<div id="content"/>').html(content).appendTo(fakeStub.find('body'));
}
},
{siteName: "动力中文",
url: "^http://dlzw\\.cc/article.*\\.html",
nextSelector: "span:contains('下一篇') > a",
prevSelector: "span:contains('上一篇') > a",
indexSelector: "#pt a[href^='http']"
},
{siteName: "塔读文学",
url: "^http://www\\.tadu\\.com/book/\\d+/\\d+/",
bookTitleSelector: '.title em:first',
contentSelector: "#partContent",
contentPatch: function(fakeStub){
var m = fakeStub.find("body").html().match(/\.html\(unescape\("(.*)"\)/);
if(m){
var unescapeContent = m[1];
fakeStub.find("#partContent").html(unescape(unescapeContent));
}
}
},
{siteName: "第一中文",
url: "^http://www\\.dyzww\\.com/cn/\\d+/\\d+/\\d+\\.html$" ,
contentReplace: {
'<img.*?ait="(.*?)".*?>': "$1",
'www\\.dyzww\\.com.*|♂|шШщ.*': ""
}
},
{siteName: "来书屋",
url: "http://www.laishuwu.com/html/\\d+/\\d+/\\d+.html",
titleSelector: ".chaptertitle h2",
bookTitleSelector: ".chaptertitle h1",
contentReplace: "txt\\d+/",
},
{siteName: "万书吧",
url: "http://www\\.wanshuba\\.com/Html/\\d+/\\d+/\\d+\\.html",
titleReg: "(.*?),(.*?)-万书吧",
titlePos: 1,
contentSelector: ".yd_text2",
contentReplace: [
"\\[www.*?\\]",
"\\( \\)",
"提供无弹窗全文字在线阅读,更新速度更快文章质量更好,如果您觉得不错就多多分享本站!谢谢各位读者的支持!",
"高速首发.*?,本章节是.*?地址为如果你觉的本章节还不错的话请不要忘记向您qq群和微博里的朋友推荐哦!"
]
},
{siteName: "大文学",
url: "^http://www\\.dawenxue\\.net/html/\\d+/\\d+/\\d+\\.html",
titleReg: "(.*?)-(.*)-大文学",
contentSelector: "#clickeye_content",
contentReplace: "\\(?大文学\\s*www\\.dawenxue\\.net\\)?|\\(\\)",
},
{siteName: "奇热",
url: "^http://www\\.qirexs\\.com/read-\\d+-chapter-\\d+\\.html",
titleReg: "(.*?)-(.*?)-",
titlePos: 1,
contentSelector: "div.page-content .note",
contentRemove: "a",
contentReplace: "”奇热小说小说“更新最快|首发,/.奇热小说网阅读网!|奇热小说网提供.*|\\(手机用户请直接访问.*"
},
{siteName: "热点",
url: "^http://www\\.hotsk\\.com/Html/Book/\\d+/\\d+/\\d+\\.shtml",
titleReg: "(.*?) 正文 (.*?)- 热点书库 -",
contentReplace: "\\(热点书库首发:www.hotsk.com\\)|www.zhuZhuDao.com .猪猪岛小说."
},
{siteName: "落秋中文",
url: "^http://www\\.luoqiu\\.(com|net)/html/\\d+/\\d+/\\d+\\.html",
titleReg: "(.*?)-(.*?)-",
contentReplace: "</p>"
},
{siteName: "全本小说网",
url: "^http://www\\.qb5\\.com/xiaoshuo/\\d+/\\d+/\\d+\\.html",