// ==UserScript==
// @id mynovelreader@[email protected]
// @name My Novel Reader
// @version 4.0.6
// @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/
// @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 https://github.com/FortAwesome/Font-Awesome/raw/master/fonts/fontawesome-webfont.woff
// @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://web-resource.googlecode.com/git/fontawesome-webfont.woff";
} 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,