forked from ywzhaiqi/userscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyNovelReader.user.js
3574 lines (3282 loc) · 159 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
// @version 4.0.7
// @namespace ywzhaiqigmail.com
// @author ywzhaiqi
// @description 小说阅读脚本,统一阅读样式,内容去广告、修正拼音字、段落整理,自动下一页
// @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 unsafeWindow
// homepageURL https://userscripts.org/scripts/show/165951
// updateURL https://userscripts.org/scripts/source/165951.meta.js
// downloadURL https://userscripts.org/scripts/source/165951.user.js
// @homepageURL https://greasyfork.org/scripts/292/
// @updateURL https://greasyfork.org/scripts/292-my-novel-reader/code/My%20Novel%20Reader.meta.js
// @downloadURL https://greasyfork.org/scripts/292-my-novel-reader/code/My%20Novel%20Reader.user.js
// @require http://code.jquery.com/jquery-1.9.1.min.js
// @require http://cdn.jsdelivr.net/underscorejs/1.6.0/underscore-min.js
// @resource fontawesomeWoff http://libs.baidu.com/fontawesome/4.0.3/fonts/fontawesome-webfont.woff?v=4.0.3
// @include http://read.qidian.com/*,*.aspx
// @include http://readbook.qidian.com/bookreader/*,*.html
// @include http://free.qidian.com/Free/ReadChapter.aspx?*
// @include http://www.qdmm.com/BookReader/*,*.aspx
// @include http://www.qdwenxue.com/BookReader/*,*.aspx
// @include http://chuangshi.qq.com/read/bookreader/*.html
// @include http://chuangshi.qq.com/*bk/*/*-m-*.html
// @include http://www.jjwxc.net/onebook.php?novelid=*
// @include http://book.zongheng.com/chapter/*/*.html
// @include http://www.xxsy.net/books/*/*.html
// @include http://book.zhulang.com/*/*.html
// @include http://www.17k.com/chapter/*/*.html
// @include http://mm.17k.com/chapter/*/*.html
// @include http://www.kanxia.net/k/*/*/*.html
// @include http://www.qingdi.com/files/article/html/*/*/*.html
// @include http://www.xkzw.org/*/*.html
// @include http://shouda8.com/*/*.html
// @include http://novel.hongxiu.com/*/*/*.shtml
// @include http://www.readnovel.com/novel/*.html
// http://www.tianyabook.com/*/*.htm
// @include http://tieba.baidu.com/p/*
// booklink.me
// @include http://www.shumilou.com/*/*.html
// @include http://www.wcxiaoshuo.com/wcxs-*-*/
// @include http://www.ranwen.cc/*/*/*/*.html
// @include http://www.ranwen.net/files/article/*/*/*.html
// @include http://www.bxs.cc/*/*.html
// @include http://www.laishuwu.com/html/*/*/*.html
// @include http://www.binhuo.com/html/*/*/*.html
// @include http://www.haoqi99.com/haoqi99/*/*/*.shtml
// @include http://www.shuhe.cc/*/*/
// @include http://www.dudukan.net/html/*/*/*.html
// @include http://www.hahawx.com/*/*/*.htm
// @include http://www.zhuzhudao.com/txt/*/*/
// @include http://www.zhuzhudao.cc/txt/*/*/
// @include http://www.dahaomen.net/txt/*/*/
// @include http://www.tadu.com/book/*/*/
// @include http://www.aishoucang.com/*/*.html
// @include http://www.wanshuba.com/Html/*/*/*.html
// @include http://www.zhuishu.net/files/article/html/*/*/*.html
// @include http://www.sqsxs.com/*/*/*.html
// @include http://www.caiwei.tw/html/*/*.html
// @include http://www.hotsk.com/Html/Book/*/*/*.shtml
// @include http://www.92to.com/*/*/*.html
// @include http://www.qirexs.com/read-*-chapter-*.html
// @include http://www.du00.com/read/*/*/*.html
// @include http://www.qishuwu.com/*/*/
// @include http://www.wandoou.com/book/*/*.html
// @include http://www.6yzw.org/*/*.html
// @include http://www.daomengren.com/*/*.html
// @include http://muyuge.com/*/*.html
// @include http://bbs.vyming.com/novel-read-*-*.html
// @include http://www.9imw.com/novel-read-*-*.html
// @include http://www.23zw.com/olread/*/*/*.html
// www.sodu.so
// @include http://www.jiaodu8.com/*/*/*/*.html
// @include http://www.fktxt.com/book/*/*.html
// @include http://www.186s.cn/files/article/html/*/*/*.html
// @include http://www.6xs.cn/xs/*/*/*.html
// @include http://www.chaojiqiangbing.com/book/*/*/*.html
// @include http://book.moka123.com/book/*/*/*.html
// @include http://www.suimeng.com/files/article/html/*/*/*.html
// @include http://www.hao662.com/haoshu/*/*/*.html
//www.verydu.net
// http://www.yawen8.com/*/*/*.html
// @include http://www.tsxs.cc/files/article/html/*/*/*.html
// @include http://www.ziyuge.com/*/*/*/*/*.html
// 其它网站
// @include http://www.ttzw.com/book/*/*.html
// @include http://www.uukanshu.com/*/*/*.html
// @include http://www.173ed.com/read/*/*.html
// @include http://www.a240.com/read/*/*.html
// @include http://www.zhuishu.com/*/*.html
// @include http://www.shuangde.cc/*/*.html
// @include http://www.shenmaxiaoshuo.com/ml-*-*/
// @include http://www.86kankan.com/read/*/*.html
// @include http://www.fkzww.com/*/*/*.html
// @include http://www.151kan.com/*/*/*/*.html
// @include http://www.bookabc.net/*/*/*.html
// @include http://www.xshuotxt.com/*/*/*/*.html
// @include http://www.doulaidu.com/*/*/*.html
// @include http://www.d586.com/*/*/
// @include http://www.kanshu.la/book/*/*.shtml
// @include http://www.wtcxs.com/files/article/html/*/*/*.html
// @include http://www.5du5.com/book/*/*/*.html
// @include http://book.kanunu.org/*/*/*.html
// @include http://paitxt.com/*/*/*.html
// @include http://www.shunong.com/yuedu/*/*/*.html
// @include http://book.yayacms.com/*/book_*_*.html
// @include http://www.yqhhy.cc/*/*/*.html
// @include http://www.nuoqiu.com/static/*/*.html
// @include http://www.17yue.com/*/*/*.html
// @include http://dukeba.com/book/*/*/*.shtml
// @include http://www.wenchangshuyuan.com/html/*/*/*.html
// @include http://www.pofeng.net/xiaoshuo/*/*.html
// @include http://www.piaotian.net/html/*/*/*.html
// @include http://www.epzww.com/book/*/*
// @include http://tw.xiaoshuokan.com/haokan/*/*.html
// @include http://www.wobudu.com/*/*.html
// @include http://www.qb5.com/xiaoshuo/*/*/*.html
// @include http://www.23us.com/html/*/*/*.html
// @include http://www.xs222.com/html/*/*/*.html
// @include http://www.bixiage.com/*/*/*/*.html
// @include http://www.ranwenxiaoshuo.com/files/article/html/*/*/*.html
// @include http://www.ranwenxiaoshuo.com/*/*-*-*.html
// @include http://www.bjxiaoshuo.com/bjxs-*-*/
// @include http://www.59shuku.com/xiaoshuo/*/*.htm
// @include http://www.16kbook.org/Html/Book/*/*/*.shtml
// @include http://www.dixiaoshuo.com/Html/*/*.html
// @include http://www.nieshu.com/Book/*/*/*.shtml
// @include http://www.tlxsw.com/files/article/html/*/*/*.html
// @include http://www.1kanshu.com/files/article/html/*/*/*.html
// @include http://www.uutxt.org/book/*/*/*.html
// @include http://www.5800.cc/*/*/*/*.html
// @include http://www.biquge.com/*/*.html
// @include http://www.qududu.com/book/*/*/*.html
// @include http://www.free97.cn/book/*/*/*.html
// @include http://www.122s.com/book/*/*.html
// @include http://www.123du.net/dudu-*/*/*.html
// @include http://www.123du.cc/dudu-*/*/*.html
// @include http://www.123du.net/book/*/*.html
// @include http://www.hwafa.com/*/*.html
// @include http://www.qmshu.com/html/*/*/*.html
// @include http://dlzw.cc/article-*-*.html
// @include http://www.shushu5.com/read/*/*.html
// @include http://www.qiuwu.net/html/*/*/*.html
// @include http://www.xiaoyanwenxue.com/files/article/html/*/*/*.html
// @include http://www.3gsc.com.cn/bookcon/*_*_*
// @include http://www.bj-ibook.cn/book/*/*/*.htm
// @include http://www.baoliny.com/*/*.html
// @include http://www.dajiadu.net/files/article/html/*/*/*.html
// @include http://www.yankuai.com/files/article/html/*/*/*.html
// @include http://www.docin.net/*/*.html
// @include http://www.dushuge.net/html/*/*/*.html
// @include http://www.xunshu.org/xunshu/*/*/*.html
// @include http://www.moneyren.com/book/*/*/*.shtml
// @include http://wemaxfilipino.com/*/*/*.html
// @include http://www.85618892.cn/xiaoshuo/*/*/*.shtml
// @include http://www.bookba.net/Html/Book/*/*/*.html
// @include http://www.moksos.com/*/*/*.html
// @include http://dudu8.net/novel/*/*/*.html
// @include http://www.dawenxue.net/html/*/*/*.html
// @include http://www.yanmoxuan.org/book/*/*/*.html
// @include http://www.duyidu.com/xiaoshuo/*/*/*.html
// @include http://www.69zw.com/xiaoshuo/*/*/*.html
// @include http://www.laishu.com/book/*/*/*.shtml
// @include http://www.bxwx.org/b/*/*/*.html
// @include http://www.bxzw.org/*/*/*/*.shtml
// @include http://www.360118.com/html/*/*/*.html
// @include http://www.59to.com/files/article/xiaoshuo/*/*/*.html
// @include http://www.dyzww.com/cn/*/*/*.html
// @include http://www.9wh.net/*/*/*.html
// @include http://www.luoqiu.net/html/*/*/*.html
// @include http://www.luoqiu.com/html/*/*/*.html
// @include http://www.epzw.com/files/article/html/*/*/*.html
// @include http://www.dashubao.com/book/*/*/*.html
// @include http://b.faloo.com/p/*/*.html
// @include http://www.baikv.com/*/*.html
// @include http://www.66721.com/*/*/*.html
// @include http://www.3dllc.com/html/*/*/*.html
// @include http://www.xstxt.com/*/*/
// @include http://www.zzzcn.com/3z*/*/
// @include http://www.zzzcn.com/modules/article/App.php*
// @include http://www.nilongdao.com/book/*/*/*.html
// @include http://xs321.net/*/*/
// @include http://read.guanhuaju.com/files/article/html/*/*/*.html
// @include http://www.book108.com/*/*/*.html
// @include http://5ycn.com/*/*/*.html
// @include http://www.zhaoxiaoshuo.com/chapter-*-*-*/
// @include http://*zbzw.com/*/*.html
// @include http://manghuangji.cc/*/*.html
// @include http://www.aiqis.com/*/*.html
// @include http://www.fftxt.net/book/*/*.html
// @include http://www.5kwx.com/book/*/*/*.html
// @include http://www.uuxiaoshuo.net/html/*/*/*.html
// @include http://www.sanyyo.org/*.html
// @include http://www.chinaisbn.com/*/*/*.html
// @include http://www.caihongwenxue.com/Html/Book/*/*/*.html
// @include http://www.shushuw.cn/shu/*/*.html
// @include http://www.78xs.com/article/*/*/*.shtml
// @exclude */List.html
// @exclude */List.shtml
// @exclude */index.html
// @exclude */index.shtml
// @exclude */Default.html
// @exclude */Default.shtml
// @run-at document-start
// ==/UserScript==
var isChrome = !!window.chrome;
var fontawesomeWoff = GM_getResourceURL('fontawesomeWoff');
if (!fontawesomeWoff || fontawesomeWoff.length < 10) {
fontawesomeWoff = "http://libs.baidu.com/fontawesome/4.0.3/fonts/fontawesome-webfont.woff?v=4.0.3";
} else if (isChrome) {
fontawesomeWoff = "data:font/woff;charset=utf-8;base64," + fontawesomeWoff;
}
(function(CSS_MAIN){
if(["mynovelreader-iframe", "superpreloader-iframe"].indexOf(window.name) != -1) { // 用于加载下一页的 iframe
return;
}
// 其它设置
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
// 自动尝试的规则
var rule = {
titleReplace: /^章节目录|^文章正文|^正文|全文免费阅读|最新章节|\(文\)/,
nextSelector: "a:contains('下一页'), a:contains('下一章'), a:contains('下一节'), a:contains('下页')",
prevSelector: "a:contains('上一页'), a:contains('上一章'), a:contains('上一节'), a:contains('上页')",
// 忽略的下一页链接,匹配 href
nextUrlIgnore: /index|list|last|end|BuyChapterUnLogin|BookReader\/vip,|^javascript:|book\.zongheng\.com\/readmore|\/0\.html$|www\.shumilou\.com\/to-n-[a-z]+-\d+\.html/i,
nextUrlCompare: /\/\d+(_\d+)?\.html?$|\/wcxs-\d+-\d+\/$|chapter-\d+\.html$/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", "#chapter_content", "#chapterContent", "#partbody",
"#article_content", "#BookTextRead", "#booktext", "#BookText", "#readtext", "#text_c", "#txt_td", "#TXT", "#zjneirong",
".novel_content", ".readmain_inner", ".noveltext", ".booktext",
"#contentTxt", "#oldtext", "#a_content", "#contents", "#content2", "#content", ".content"],
bookTitleSelector: ".h1title > .shuming > a[title]",
contentRemove: "script, iframe, font[color]", // 内容移除选择器
contentReplace: /最新.?章节|百度搜索|无弹窗小说网|更新快无弹窗纯文字|高品质更新|\(百度搜.\)|全文字手打|“” 看|无.弹.窗.小.说.网|追书网|〖∷∷无弹窗∷纯文字∷ 〗/g,
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://(www|read|readbook)\\.(qidian|qdmm|qdwenxue)\\.com/BookReader/.*",
// titleReg: "小说:(.*?)(?:独家首发)/(.*?)/.*",
titleSelector: "#lbChapterName",
bookTitleSelector: ".page_site > a:last",
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"?>起点中文网.*': ''
},
// contentHandle: false,
contentPatch: function(fakeStub){
fakeStub.find('div#content script:first').addClass('reader-ajax');
},
},
{siteName: "起点中文网免费频道",
url: "^http://free\\.qidian\\.com/Free/ReadChapter\\.aspx",
titleSelector: ".title > h3",
bookTitleSelector: ".site_rect > a:last",
contentSelector: "#chapter_cont",
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 > script:first').addClass('reader-ajax');
}
},
{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://chuangshi\\.qq\\.com/",
titleReg: "(.*?)_(.*)_创世中文",
contentSelector: ".bookreadercontent",
contentHandle: false,
useiframe: true,
mutationSelector: "#chaptercontainer", // 内容生成监视器
mutationChildCount: 1,
contentPatch: function(fakeStub){
fakeStub.find('.bookreadercontent > p:last').remove();
// 下面的补丁方式目前还不支持获取下一页链接
// var cid = fakeStub.find('body').html().match(/ var cid = "(\d+?)",/)[1];
// var durl = 'http://chuangshi.qq.com/read/bookreader/' + cid +'/0';
// fakeStub.find('body').append('<div id=content></div>');
// fakeStub.find('div#content').attr({
// class: 'reader-ajax',
// src: durl,
// charset: 'GB2312'
// });
}
},
{siteName: "晋江文学网",
url: /^http:\/\/www\.jjwxc\.net\/onebook\.php\S*/,
titleReg: /《(.*?)》.*ˇ(.*?)ˇ.*/,
indexSelector: ".noveltitle > h1 > a",
contentHandle: false,
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",
titleReg: "(.*)_(.*)免费阅读_小说阅读网",
contentSelector: "#article",
contentRemove: "div[style]"
},
{siteName: "百度贴吧(手动启用)",
url: /^http:\/\/tieba\.baidu.com\/p\//,
titleSelector: "h1.core_title_txt",
bookTitleSelector: ".card_title_fname",
// contentSelector: "div[id^='post_content_']",
contentSelector: "#j_p_postlist",
contentRemove: ".share_btn_wrapper, #sofa_post, .d_author",
// 显示楼层的分割线
style: ".clear { border-top:1px solid #cccccc; margin-bottom: 50px;}",
},
// {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: "http://www.yi-see.com/read_\\d+_\\d+.html",
// contentSelector: 'table[width="900px"][align="CENTER"]'
// },
{siteName: "燃文",
url: /^http:\/\/www\.ranwen\.cc\/.*\.html$/,
titleReg: /(.*?)-(.*?)-燃文/,
contentSelector: "#oldtext",
contentRemove: "div[style], script",
contentReplace: [
/最快更新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\.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 阅阅 读 网|看小说最快更新|“小#说看本书无广告更新最快”": "",
"【 .{1,10} 】":""
},
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\.shumilou\.com\/.*html$/,
titleReg: /(.*) (.*?) 书迷楼/,
titlePos: 1,
contentSelector: "#content",
contentReplace: ['div lign="ener">|.*更多章节请到网址隆重推荐去除广告全文字小说阅读器',
'起点中文网www.qidian.com欢迎广大书.*',
'书迷楼最快更新.*'],
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,
contentReplace: {
"<冰火#中文.*|冰火中文 (www.)?binhuo.com|冰.火.中文|绿色小说|lvsexs|冰火中文.": "",
"([^/])www\\.binhuo\\.com": "$1"
},
contentPatch: function(fakeStub){
fakeStub.find("#BookText").append(fakeStub.find("img.imagecontent"));
}
},
{siteName: "百晓生",
url: /^http:\/\/www\.bxs\.cc\/\d+\/\d+\.html$/,
titleReg: /(.*?)\d*,(.*)/,
contentReplace: [
/一秒记住【】www.zaidu.cc,本站为您提供热门小说免费阅读。/ig,
/(文 學馆w ww.w xguan.c om)/ig,
/\(( )*无弹窗全文阅读\)/ig,
/\[<a.*?首发\[百晓生\] \S+/ig,
/\/\/(?: |访问下载txt小说|高速更新)+\/\//ig,
/(www\.)?bxs\.cc/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,
],
},
{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:\/\/muyuge\.com\/\w+\/\d+\.html/,
titleReg: "(.*?) (.*)_木鱼哥",
indexSelector: ".readerFooterPage a[title='(快捷:回车键)']",
// useiframe: true,
// mutationSelector: "#content",
// mutationChildCount: 1,
contentRemove: ".vote",
contentReplace: {
"<a[^>]*>(.*?)</a>": "$1",
"看更新最快的小说就搜索—— 木鱼哥——无弹窗,全文字": "",
"<p>.*?无弹窗</p>":"",
"bb\\.king|【木 鱼 哥 .*?】|【一秒钟记住本站:muyuge.com 木鱼哥】":"",
"——推荐阅读——[\\s\\S]+": "",
},
},
{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]"
},
{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: "(.*?)/(.*?)-万书吧",
indexSelector: "#mulu",
prevSelector: "#previewpage",
nextSelector: "#papgbutton a:contains('手机下一章'), #nextpage",
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",
titleReg: "(.*)_(.*)_",
contentRemove: "div[class]",
contentReplace: "全.{0,2}本.{0,2}小.{0,2}说.{0,2}网.{0,2}|[wWw ]+.{1,10}[CccǒOmMМ ]+",
},
{siteName: "手牵手小说网",
url: "^http://www\\.sqsxs\\.com/\\d+/\\d+/\\d+\\.html",
titleReg: "(.*?)最新章节_\\S* (.*)_手牵手小说网",
contentReplace: "访问下载txt小说.百度搜.|免费电子书下载|\\(百度搜\\)|『文學吧x吧.』|¤本站网址:¤"
},
{siteName: "六月中文网,盗梦人小说网",
url: "^http://www\\.(?:6yzw\\.org|daomengren\\.com)/.*\\.html",
bookTitleSelector: ".con_top>a:last",
contentRemove: "a[href='http://i./'], a[href='http://www.87xsw.com']",
contentReplace: [
"{飘天文学[\\s\\S]*您的支持就是我们最大的动力}",
"((未完待续),|精彩推荐:,)?最新最快更新热门小说,享受无弹窗阅读就在:",
"一秒记住【】,本站为您提供热门小说免费阅读。",
"百度搜索 本书名.*",
"\\(? ?提供』。如果您喜欢这部作品,欢迎您来创世中文网[\\s\\S]+",
"[\\((]未完待续.{1,2}本文字由.*",
"//添加开头|会员特权抢先体验",
"更新最快|更新快纯文字|看最新章节|六月中文网|78小说|h﹒c﹒d|穿越小说吧 sj131|\\*五月中文网5.c om\\*",
"\\d楼[\\d\\-: ]+(?: )+ \\|(?: )+|吧主\\d+(?: )+|支持威武,嘎嘎!",
"www,| \\\\|“梦”( | )*“小”( | )*(“说” )?“网”|“岛”( | )+“说”",
/(百度搜索 )?本书名 \+ 盗梦人 看最快更新/ig,
]
},
{siteName: "飞卢小说网",
url: "^http://b\\.faloo\\.com/p/\\d+/\\d+\\.html",
titleSelector: "#title h1",
nextSelector: "a#next_page",
prevSelector: "a#pre_page",
indexSelector: "a#huimulu",
contentSelector: "#main > .main0",
contentRemove: "> *:not(#con_imginfo, #content)",
contentReplace: "飞卢小说网 b.faloo.com 欢迎广大书友光临阅读,最新、最快、最火的连载作品尽在飞卢小说网!",
contentPatch: function(fakeStub){
fakeStub.find("#content").find(".p_gonggao").remove()
// fakeStub.find("#con_imginfo").prependTo("#content");
}
},
{siteName: "顶点小说",
url: "^http://www\\.(?:23us|xs222)\\.com/html/\\d+/\\d+/\\d+\\.html$",
titleReg: "(.*?)-\\S*\\s(.*?)-顶点小说",
titlePos: 0,
indexSelector: "#footlink a:contains('返回目录')",
prevSelector: "#footlink a:contains('上一页')",
nextSelector: "#footlink a:contains('下一页')",
contentSelector: "#contents",
contentReplace: "\\(看小说到顶点小说网.*\\)|\\(\\)|【记住本站只需一秒钟.*】",
contentPatch: function(fakeStub){
var temp=fakeStub.find('title').text();
var realtitle = temp.replace(/第.*卷\s/,'');
fakeStub.find('title').html(realtitle);
}
},
{siteName: '笔下阁',
url: "^http://www\\.bixiage\\.com/\\w+/\\d+/\\d+/\\d+\\.html",
titleReg: "(.*)最新章节免费在线阅读_(.*)_笔下阁",
indexSelector: ".read_tools a:contains('返回目录')",
prevSelector: ".read_tools a:contains('上一页')",
nextSelector: ".read_tools a:contains('下一页')",
contentReplace: [
"本书最新免费章节请访问|请记住本站的网址|请使用访问本站",
"看更新最快的.*www.bixiage.com",
"笔下阁为您提供全文字小说.*",
"如果你觉得笔下阁不错.*",
"本篇是小说.*章节内容,如果你发现内容错误.*"
]
},
{siteName: '双德小说网',
url: "^http://www\\.shuangde\\.cc/.*\\.html",
bookTitleSelector: '.title > h2 > a',
contentRemove: '.title, div[align="center"]',
},
{siteName: '爱尚小说网',
url: 'http://www.a240.com/read/\\d+/\\d+.html',
titleReg: '(.*) - (.*?) - 爱尚小说网',
titlePos: 1,
contentRemove: '.bottem, center',
contentReplace: '<!--章节内容开始-->'
},
{siteName: 'E度文学网',
url: 'http://www.173ed.com/read/\\d+/\\d+.html',
contentRemove: 'a[href*="173e"]',
contentReplace: [
'全文字小说W.*?\\.com',
'E度文学网更新最快',
'www\\.♀173ed.com♀'
]
},
{siteName: "3Z中文网",
url: "^http://www\\.zzzcn\\.com\\/(3z\\d+/\\d+\\/|modules\\/article\\/App\\.php\\?aid=\\d+&cid=\\d+){1}$",
// titleReg: "(.*?)-(.*)TXT下载",
contentSelector: "#content3zcn",
indexSelector: "a:contains('返回目录')",
prevSelector: "a:contains('上 一 页')",
nextSelector: "a:contains('下 一 页'), a:contains('返回书架')",
contentReplace: [
/[{(][a-z\/.]+(?:首发文字|更新超快)[})]/ig,
"手机小说站点(wap.zzzcn.com)",
"一秒记住.*为您提供精彩小说阅读。",
],
contentPatch: function(fakeStub){
fakeStub.find("a:contains('返回书架')").html("下 一 页").attr("href", fakeStub.find("a:contains('返回目录')").attr("href"));
fakeStub.find("#content3zcn").find(".titlePos, font.tips, a").remove();
}
},
// ================== 采用 iframe 方式获取的 ====================
{siteName: "16K小说网",
url: "^http://www\\.16kbook\\.org/Html/Book/\\d+/\\d+/\\d+\\.shtml$",
titleReg: '(\\S+) (.*)- 16K小说网',
useiframe: true,
contentRemove: '.bdlikebutton',
contentReplace: {
'(<center>)?<?img src..(http://www.16kbook.org)?(/tu/\\S+\\.jpg).(>| alt."\\d+_\\d+_\\d*\\.jpg" />)(</center>)?': "$3",
"/tu/shijie.jpg":"世界", "/tu/xiangdao.jpg":"想到", "/tu/danshi.jpg":"但是", "/tu/huilai.jpg":"回来", "/tu/yijing.jpg":"已经", "/tu/zhende.jpg":"真的", "/tu/liliang.jpg":"力量", "/tu/le.jpg":"了", "/tu/da.jpg":"大", "/tu/shengli.jpg":"胜利", "/tu/xiwang.jpg":"希望", "/tu/wandan.jpg":"完蛋", "/tu/de.jpg":"的",
"16kbook\\s*(首发更新|小说网)": "",
}
},
{siteName: "读读看",
url: "^http://www\\.dudukan\\.net/html/.*\\.html$",
contentReplace: "看小说“就爱读书”|binhuo|www\\.92to\\.com",
useiframe: true,
mutationSelector: "#main",
mutationChildCount: 0,
},
{siteName: "读零零",
url: "http://www\\.du00\\.com/read/\\d+/\\d+/[\\d_]+\\.html",
titleReg: "(.*?)(?:第\\d+段)?,(.*) - 读零零小说网",
titlePos: 1,
prevSelector: "#footlink a:first",
indexSelector: "#footlink a:contains('目录')",
nextSelector: "#footlink a:last",
// 内容
contentSelector: "#pagecontent, .divimage",
useiframe: true,
mutationSelector: "#pagecontent",
mutationChildCount: 2,
contentRemove: "font",
contentReplace: [
"读零零小说网欢迎您的光临.*?txt格式下载服务",
",好看的小说:|本书最新免费章节请访问。",
"\\*文學馆\\*",
"\\(未完待续请搜索,小说更好更新更快!",
"www\\.DU00\\.com"
],
checkSection: true
},
{siteName: "78小说网",
url: "^http://www\\.78xs\\.com/article/\\d+/\\d+/\\d+.shtml$",
contentHandle: false,
titleReg: "(.*?) (?:正文 )?(.*) 78小说网",
indexSelector: "a:contains('目 录')",
prevSelector: "a:contains('上一章')",
nextSelector: "a:contains('下一章')",
contentSelector: "#content",
useiframe: true,
contentReplace: [
"//.*?78xs.*?//",
"\\(全文字小说更新最快\\)",
],
contentPatch: function(fakeStub){
fakeStub.find('p.title').empty(); // 去掉内容中带的章节标题
}
},
{siteName: "151看书网",
url: "^http://www\\.151kan\\.com/kan/.*\\.html",
contentSelector: "#msg",
useiframe: true,
mutationSelector: "#msg",
contentReplace: [
/[\/|]?www\.151(?:看|kan)\.com[\/|]?/ig,
/151看书网(?:纯文字)?/ig,
]
},
{siteName: "就爱读书",
url: "^http://www\\.92to\\.com/\\w+/\\w+/\\d+\\.html$",
titleReg: "(.*?)-(.*?)-",
useiframe: true,
timeout: 500,
contentReplace: "看小说.就爱.*"
},
{siteName: "书书网",
url: "http://www\\.shushuw\\.cn/shu/\\d+/\\d+\\.html",
titleReg: "(.*) (.*?) 书书网",
titlePos: 1,
useiframe: true,
timeout: 500,
contentReplace: "!~![\\s\\S]*"
},
{siteName: "找小说网",
url: "http://www\\.zhaoxiaoshuo\\.com/chapter-\\d+-\\d+-\\w+/",
titleReg: "(.*) - (.*) - 找小说网",
titlePos: 1,
useiframe: true,
timeout: 500,
contentRemove: "div[style]"
},
{siteName: "ABC小说网",
url: "^http://www\\.bookabc\\.net/.*\\.html",
useiframe: true
},
// ============== 内容需要2次获取的 =========================
{siteName: "手打吧",
url: /^http:\/\/shouda8\.com\/\w+\/\d+\.html/,
contentReplace: /[w\s\[\/\\\(]*.shouda8.com.*|(\/\/)?[全文字]?首发|手打吧|www.shou.*|\(w\/w\/w.shouda8.c\/o\/m 手、打。吧更新超快\)|小说 阅读网 www.xiaoshuoyd .com/ig,
contentPatch: function(fakeStub){
var scriptSrc = fakeStub.find('body').html().match(/outputContent\('(.*txt)'\)/)[1];
scriptSrc = "http://shouda8.com/ajax.php?f=http://shouda8.com/read" + scriptSrc;
fakeStub.find('#content').attr({
"class": 'reader-ajax',
src: scriptSrc
});
}
},
{siteName: "哈哈文学",
url: /^http:\/\/www\.hahawx\.com\/.*htm/,
titleReg: /(.*?)-(.*?)-.*/,
contentSelector: "#chapter_content",
contentReplace: /(?:好书推荐|书友在看|其他书友正在看|好看的小说|推荐阅读):。|(?:www|www|book).*(?:com|net|org|com|net)|全文字阅读|无弹窗广告小说网|哈哈文学\(www.hahawx.com\)|souDU.org|Soudu.org|jīng彩推荐:/ig,
contentPatch: function(fakeStub){
var $content = fakeStub.find("#chapter_content");
var m = $content.find("script").text().match(/output\((\d+), "(\d+\.txt)"\);/);
if(m && m.length == 3){
var aid = m[1],
files = m[2];
var subDir = "/" + (Math.floor(aid / 1000) + 1),
subDir2 = "/" + (aid - Math.floor(aid / 1000) * 1000);
$content.attr({
class: "reader-ajax",
src: "http://r.xsjob.net/novel" + subDir + subDir2 + "/" + files,
charset: "gbk"
});
}
}
},
{siteName: "天天中文",
url: "http://www\\.ttzw\\.com/book/\\d+/\\d+\\.html",
titleSelector: "#chapter_title",
bookTitleSelector: ".fl.pl20 a:last",
contentSelector: "#text_area",
contentReplace: /www.ttzw.com|www.c66c.com|手机用户请到阅读。|<p>\s*a<\/p>/ig,
contentPatch: function(fakeStub) {
var m = fakeStub.find('#text_area script').text().match(/outputTxt\("(.*)"\);/);
if (m) {
fakeStub.find('#text_area').attr({
class: "reader-ajax",
src: unsafeWindow.getServer() + m[1],
charset: "gbk"
});
}
}
},
// ===========================================================
{siteName: "好看小說網",
url: "http://tw\\.xiaoshuokan\\.com/haokan/\\d+/\\d+\\.html",
contentSelector: ".bookcontent",
prevSelector: "a.redbutt:contains('上一頁')",
indexSelector: "a.redbutt:contains('返回章節目錄')",
nextSelector: "a.redbutt:contains('下一頁')",
contentReplace: "[a-z;&]*w.[xx]iaoshuokan.com 好看小說網[a-z;&族】)]*"
},
{siteName: "E品中文网",
url: "http://www\\.epzww\\.com/book/\\d+/\\d+",
titleReg: "(.*?),(.*?),",
contentSelector: "#showcontent",
},
{siteName: "飘天文学",
url: "http://www\\.piaotian\\.net/html/\\d+/\\d+/\\d+\\.html",
// titleReg: "(.*)最新章节,(.*),飘天文学",
bookTitleSelector: '#content > h1 > a',
contentSelector: "#content",
useiframe: true, // 否则 content 在 body 下面
contentRemove: "h1, table",
contentReplace: [
/[{〖]请在百度搜索.*[}〗]|.(?:百度搜索飄天|无弹窗小说网).*\.Net.|\[飄天.*无弹窗小说网\]/ig,
'\\{飘天文学www.piaotian.net感谢各位书友的支持,您的支持就是我们最大的动力\\}'
],
},
{siteName: "天使小说网",
url: "http://www\\.tsxs\\.cc/files/article/html/\\d+/\\d+/\\d+\\.html",
contentSelector: "#content"