Skip to content

Commit

Permalink
5.2.8 一些规则修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Jan 14, 2016
1 parent 7080a8b commit f523e39
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 40 deletions.
53 changes: 33 additions & 20 deletions MyNovelReader/MyNovelReader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @name My Novel Reader
// @name:zh-CN 小说阅读脚本
// @name:zh-TW 小說閱讀腳本
// @version 5.2.7
// @version 5.2.8
// @namespace https://github.com/ywzhaiqi
// @author ywzhaiqi
// @contributor Roger Au, shyangs, JixunMoe、akiba9527 及其他网友
Expand Down Expand Up @@ -110,6 +110,7 @@
// @include http://www.xs84.com/*_*/*
// @include http://www.geiliwx.com/GeiLi/*/*/*.shtml*
// @include http://www.123yq.com/read/*/*/*.shtml
// @include http://www.123yq.org/read/*/*/*.shtml
// @include http://www.dhzw.com/book/*/*/*.html
// @include http://www.du00.cc/read/*/*/*.html
// @include http://www.aszw.com/book/*/*/*.html
Expand Down Expand Up @@ -230,7 +231,7 @@
// @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://www.dashubao.co/book/*/*/*.html
// @include http://b.faloo.com/p/*/*.html
// @include http://www.baikv.com/*/*.html
// @include http://www.66721.com/*/*/*.html
Expand Down Expand Up @@ -264,6 +265,7 @@
// @include http://book.58xs.com/html/*/*/*.html
// @include http://book.mihua.net/*/*/*/*.html
// @include http://www.hjwzw.com/Book/Read/*,*
// @include http://www.hjwzw.com/Book/Read/*_*
// @include http://www.365essay.com/*/*.htm
// @include http://www.gengxin8.com/read/*/*.html
// @include http://www.365xs.org/books/*/*/*.html
Expand All @@ -285,6 +287,7 @@
// @include http://www.quanbenba.com/yuedu/*/*/*.html
// @include http://*.sto.cc/*-*/
// @include http://www.151xs.com/wuxiazuoxiong/*/chapter/*/
// @include http://www.qududu.net/book/*/*/*.html

// @exclude */List.htm
// @exclude */List.html
Expand Down Expand Up @@ -406,7 +409,7 @@ Rule.specialSite = [
prevSelector: '#pagePrevRightBtn',
nextSelector: '#pageNextRightBtn',
indexSelector: function() {
return location.href.replace(/,\w+\.aspx$/, '.aspx').replace('BookReaderNew', 'BookReader');
return location.href.replace(/,.*?\.aspx$/, '.aspx').replace('BookReaderNew', 'BookReader');
},

mutationSelector: "#chaptercontainer", // 内容生成监视器
Expand Down Expand Up @@ -1178,10 +1181,10 @@ Rule.specialSite = [
}
},
{siteName: "123言情",
url: 'http://www\\.123yq\\.com/read/\\d+/\\d+/\\d+\\.shtml',
url: 'http://www\\.123yq\\.(com|org)/read/\\d+/\\d+/\\d+\\.shtml',
bookTitleSelector: '.con_top > a:last',
contentSelector: "#TXT",
contentRemove: '.bottem, .red',
contentRemove: '.bottem, .red, .contads, a',
},
{siteName: "热门小说网",
url: 'http://www.remenxs.com/du_\\d+/\\d+/',
Expand Down Expand Up @@ -1214,6 +1217,7 @@ Rule.specialSite = [
"BAIDU_CLB_fillSlot\\(.*",
"--小-说-www-23wx-com",
"  ,请",
'\\.www\\.GEILIWX开心阅读每一天',
],
contentPatch: function(d) {
if (!d.find('#content').length) {
Expand Down Expand Up @@ -1636,11 +1640,14 @@ Rule.specialSite = [
contentHandle: false,
},
{siteName: "黄金屋中文网",
url: /www\.hjwzw\.com\/Book\/Read\/\d+,\d+$/,
url: /www\.hjwzw\.com\/Book\/Read\/\d+[,_]\d+$/,
titleSelector: "h1",
indexSelector: "td a[href='./']",
contentSelector: "#AllySite+div",
contentRemove: "b, b+p"
contentRemove: "b, b+p",
contentReplace: [
"请记住本站域名:"
]
},
{siteName: "梦远书城",
url: /www\.my285\.com(?:\/\w+){3,5}\/\d+\.htm$/,
Expand Down Expand Up @@ -1671,7 +1678,7 @@ Rule.specialSite = [
]
},
{siteName: "大书包小说网",
url: "http://www\\.dashubao\\.com/book/\\d+/\\d+/\\d+\\.html",
url: "http://www\\.dashubao\\.com?/book/\\d+/\\d+/\\d+\\.html",
bookTitleSelector: ".read_t > .lf > a:nth-child(3)",
contentSelector: ".yd_text2",
contentReplace: [
Expand Down Expand Up @@ -1738,6 +1745,10 @@ Rule.specialSite = [
contentSelector: "div#BookContent",
contentRemove: 'span',
},
{siteName: "去读读",
url: "http://www\\.qududu\\.net/book/\\d+/\\d+/\\d+\\.html",
contentSelector: "#kui-page-read-txt",
},


// ===== 特殊的获取下一页链接
Expand Down Expand Up @@ -1906,7 +1917,7 @@ Rule.replace = {
"上jiang":"上将", "she(门|术|手|程|击)":"射$1", "sudu":"速度", "shuijue":"睡觉", "shide":"是的", "sh[iì]ji[eè]":"世界", "sh[ií]ji[aā]n":"时间", "sh[ií]h[oò]u": "时候", "sh[ií]me":"什么", "si人":"私人", "shi女":"侍女", "shi身": "失身", "sh[ūu]j[ìi]":"书记", "shu女": "熟女", "shu[ \\s]?xiong":"酥胸", "(?:上|shang)chuang": "上床", "呻y[íi]n": "呻吟", "sh[ēe]ngzh[íi]": "生殖", "深gu": "深谷", "双xiu": "双修", "生r[ìi]": "生日", "si盐":"私盐", "shi卫":"侍卫", "si下":"私下", "sao扰":"骚扰", "shuang feng":"双峰",
"t[uū]r[áa]n":"突然", "tiaojiao": "调教", "偷qing":"偷情", "推dao": "推倒", "脱guang": "脱光", "t[èe]bi[ée]":"特别", "t[ōo]nggu[òo]":"通过", "同ju":"同居", "tian来tian去":"舔来舔去",
"w[ēe]ixi[ée]":"威胁", "wèizh[ìi]":"位置", "wei员":"委员", "w[èe]nti":"问题", "wèi\\s*dào\\s*":"味道", "wú\\s*nài":"无奈", "weilai":"未来",
"xiu长": "修长", "亵du": "亵渎", "xing福": "幸福", "小bo":"小波", "小niū":"小妞", "xiong([^a-z])":"胸$1", "小tui":"小腿", "xiang港":"香港", "xiàohuà":"笑话", "xiàn\\'zhì":"限制", "xiōng\\s*dì":"兄弟",
"xiu长": "修长", "亵du": "亵渎", "xing福": "幸福", "小bo":"小波", "小niū":"小妞", "xiong([^a-z])":"胸$1", "小tui":"小腿", "xiang港":"香港", "xiàohuà":"笑话", "xiàn\\'zhì":"限制", "xiōng\\s*dì":"兄弟", "选zé":"选择",
"yì\\s*wài\\s*":"意外", "yin(冷|暗|谋|险|沉|沟|癸派|后)":"阴$1", "y[iī]y[àa]ng":"一样", "y[īi]di[ǎa]n":"一点", "yī\\s*zhèn":"一阵", "y[ǐi]j[īi]ng":"已经", "疑huo":"疑惑", "yí\\s*huò":"疑惑", "影mi":"影迷", "yin荡":"淫荡", "yin贼":"淫贼", "阳w[ěe]i": "阳痿", "yao头": "摇头", "yaotou": "摇头", "摇tou": "摇头", "yezhan": "野战", "you饵": "诱饵", "(?:you|诱)(?:惑|huo)": "诱惑", "you导": "诱导", "引you": "引诱", "you人": "诱人", "youshi":"有事", "you\\s*xiu":"优秀", "御yòng":"御用", "旖ni":"旖旎", "yu念":"欲念", "you敌深入":"诱敌深入", "影she":"影射", "牙qian":"牙签", "一yè情":"一夜情",
"z[iì]j[iǐ]": "自己","z[ìi](?:\\s|<br/?>|&nbsp;)*y[oó]u": "自由","zh[iī]d?[àa]u?o":"知道", "zixin":"自信", "zhì'fú":"制服", "zha药": "炸药", "zhan有": "占有", "zhè\\s*gè":"这个", "政f[ǔu]|zheng府": "政府", "zh[èe]ng\\s{0,2}f[uǔ]": "政府", "zong理":"总理", "zh[ōo]ngy[āa]ng": "中央", "中yang":"中央", "zu[oǒ]\\s*y[oò]u":"左右", "zhǔ\\s*dòng":"主动", "zh[oō]uw[ée]i":"周围", "中nan海":"中南海", "中j委":"中纪委", "中zu部":"中组部", "政zhi局":"政治局", "(昨|一|时|余)(?:<br/?>|&nbsp;|\\s)*ì":"$1日", "照she":"照射", "zhǔn\\s*bèi\\s*":"准备", "zhu义":"主义",

Expand All @@ -1916,25 +1927,25 @@ Rule.replace = {
// 单字替换,可能会误替换,所以需要特殊处理
(function(){
var oneWordReplace = {
"b[āà]ng":"棒","bào":"爆","bà":"吧","bī":"逼","bō":"波",
"b[āà]ng":"棒","bào":"爆","bà":"吧","bī":"逼","bō":"波", "biàn":"便",
"cāo": "操", "cǎo": "草", "cào": "操", "chāng": "娼", "chang": "娼", "cháo": "潮", "chā": "插", "chéng": "成", "chōu": "抽", "chuáng": "床", "chún": "唇", "chūn": "春", "cuō": "搓", "cū": "粗",
"dǎng": "党", "dàng": "荡", "dāo": "刀", "dòng": "洞", "diao": "屌", "diǎn": "点",
"fǎ": "法", "féi": "肥", "fù": "妇",
"guān": "官",
"hán": "含", "hóu": "喉", "hòu": "厚", "h(u)?ā": "花", "huá": "华", "huò": "惑", "hùn": "混", "hún": "魂",
"hán": "含", "hóu": "喉", "hòu":"后", "h(u)?ā": "花", "huá": "华", "huì":"会", "huò": "惑", "hùn": "混", "hún": "魂",
"jiǔ": "九", "jīng": "精", "jìn": "禁", "jǐng": "警", "jiāng": "江", "jiān": "奸", "jiāo": "交", "jūn": "军", "jū": "拘", "jú": "局", "jī": "激", "激ān":"奸",
"kù": "裤", "kàn": "看",
"[1l]àng": "浪", "liáo": "撩", "liú":"流", "lì":"莉", "liè":"烈", "[1l]uàn":"乱", "lún":"伦", "luǒ":"裸", "lòu":"露", "[l1]ù":"露", "lǜ":"绿",
"mǎi": "买", "mài": "卖", "máo": "毛", "mā": "妈", "méng": "蒙", "mén": "门", "miè": "灭", "mí": "迷", "mì": "蜜", "mō": "摸",
"[1l]àng": "浪", "liáo": "撩", "liú":"流", "lì":"莉", "liè":"烈", "[1l]uàn":"乱", "lún":"伦", "luǒ":"裸", "lòu":"露", "[l1]ù":"露", "lǜ":"绿", "liàn":"练",
"mǎi": "买", "mài": "卖", "máo": "毛", "mā": "妈", "méng": "蒙", "mén": "门", "miè": "灭", "mí": "迷", "mì": "蜜", "mō": "摸", "miàn":"面",
"nǎi": "奶", "nèn": "嫩", "niào": "尿", "niē": "捏", "nòng": "弄", "nǚ": "女",
"pào": "炮", "piàn": "片",
"qi[āa]ng": "枪", "qíng": "情", "qīn": "亲", "qiú": "求", "quán": "全",
"pào": "炮", "piàn": "片", "pò":"破",
"qi[āa]ng": "枪", "qíng": "情", "qīn": "亲", "qiú": "求", "quán": "全", "qù":"去",
"rén":"人", "rì": "日", "rǔ": "乳",
"sāo":"骚", "sǎo": "骚", "sè": "色", "shā": "杀", "shēn":"呻", "shén":"神", "shè": "射", "shǐ": "屎", "shì": "侍", "sǐ": "死", "sī": "私", "shǔn": "吮", "sǔn": "吮", "sū": "酥",
"tān":"贪", "tiǎn": "舔", "tǐng":"挺", "tǐ": "体", "tǒng": "捅", "tōu": "偷", "tou": "偷", "tuǐ": "腿", "tūn": "吞", "tún": "臀", "tiáo":"调", "tài":"态",
"sǎ":"洒", "sāo":"骚", "sǎo": "骚", "sè": "色", "shā": "杀", "shēn":"呻", "shén":"神", "shè": "射", "shǐ": "屎", "shì": "侍", "sǐ": "死", "sī": "私", "shǔn": "吮", "sǔn": "吮", "sū": "酥", "shào":"绍",
"tān":"贪", "tiǎn": "舔", "tǐng":"挺", "tǐ": "体", "tǒng": "捅", "tōu": "偷", "tou": "偷", "tuǐ": "腿", "tūn": "吞", "tún": "臀", "tiáo":"调", "tài":"态", "tào":"套",
"wēn": "温", "wěn": "吻",
"xiǎo":"小", "xìng": "性", "xiōng": "胸", "xī": "吸", "xí": "习", "xué": "穴", "xuè": "穴", "xùe": "穴", "xuan":"宣",
"yāng":"央", "yàn":"艳", "yīn":"阴", "yào": "药", "yé": "爷", "yòu": "诱", "zàng": "脏", "yù": "欲", "yín": "淫",
"xiǎo":"小", "xiào":"笑", "xìng": "性", "xiōng": "胸", "xī": "吸", "xí": "习", "xì":"系", "xìn":"信", "xué": "穴", "xuè": "穴", "xùe": "穴", "xuan":"宣", "xiàng":"象",
"yāng":"央", "yàn":"艳", "yīn":"阴", "yào": "药", "yé": "爷", "yòu": "诱", "zàng": "脏", "yù": "欲", "yín": "淫", "yì":"意", "yà":"讶",
"zhēn":"针", "zēn":"针", "zhà":"炸", "zhèng":"政", "zǒu": "走", "zuì":"罪", "zuò":"做", "zhōng":"中",

"ri":"日", "se":"色", "yu":"欲", "xing":"性",
Expand All @@ -1954,7 +1965,7 @@ Rule.replace = {
};

_.each(oneWordReplace, function(value, key) {
Rule.replace['([^a-z\\s])' + key + '(?![a-z\\s])'] = '$1' + value;
Rule.replace['([^a-z\\s])' + key + '(?![a-z])'] = '$1' + value;
});

_.extend(Rule.replace, replaceOthers);
Expand Down Expand Up @@ -1991,6 +2002,7 @@ Rule.replaceAll = [
'txt小说下载',
'(\\s*君子聚义堂)',
'readx;',
'追书必备',

// 包含 \P 的替换
'\\P{1,2}[顶頂].{1,3}[点小].*?o?[mw,]',
Expand Down Expand Up @@ -4149,6 +4161,7 @@ var App = {
clean: function() {
$('body > *:not("#container, .readerbtn, #reader_preferences, #uil_blocker,iframe[name=\'mynovelreader-iframe\']")').remove();
$('link[rel="stylesheet"]').remove();
$('body').removeAttr('style');

if (location.host.indexOf('qidian') > 0) {
unsafeWindow.jQuery(document).off("selectstart").off("contextmenu");
Expand Down
2 changes: 1 addition & 1 deletion MyNovelReader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MyNovelReader",
"version": "5.2.7",
"version": "5.2.8",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
Expand Down
1 change: 1 addition & 0 deletions MyNovelReader/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ var App = {
clean: function() {
$('body > *:not("#container, .readerbtn, #reader_preferences, #uil_blocker,iframe[name=\'mynovelreader-iframe\']")').remove();
$('link[rel="stylesheet"]').remove();
$('body').removeAttr('style');

if (location.host.indexOf('qidian') > 0) {
unsafeWindow.jQuery(document).off("selectstart").off("contextmenu");
Expand Down
5 changes: 4 additions & 1 deletion MyNovelReader/src/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
// @include http://www.xs84.com/*_*/*
// @include http://www.geiliwx.com/GeiLi/*/*/*.shtml*
// @include http://www.123yq.com/read/*/*/*.shtml
// @include http://www.123yq.org/read/*/*/*.shtml
// @include http://www.dhzw.com/book/*/*/*.html
// @include http://www.du00.cc/read/*/*/*.html
// @include http://www.aszw.com/book/*/*/*.html
Expand Down Expand Up @@ -230,7 +231,7 @@
// @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://www.dashubao.co/book/*/*/*.html
// @include http://b.faloo.com/p/*/*.html
// @include http://www.baikv.com/*/*.html
// @include http://www.66721.com/*/*/*.html
Expand Down Expand Up @@ -264,6 +265,7 @@
// @include http://book.58xs.com/html/*/*/*.html
// @include http://book.mihua.net/*/*/*/*.html
// @include http://www.hjwzw.com/Book/Read/*,*
// @include http://www.hjwzw.com/Book/Read/*_*
// @include http://www.365essay.com/*/*.htm
// @include http://www.gengxin8.com/read/*/*.html
// @include http://www.365xs.org/books/*/*/*.html
Expand All @@ -285,6 +287,7 @@
// @include http://www.quanbenba.com/yuedu/*/*/*.html
// @include http://*.sto.cc/*-*/
// @include http://www.151xs.com/wuxiazuoxiong/*/chapter/*/
// @include http://www.qududu.net/book/*/*/*.html

// @exclude */List.htm
// @exclude */List.html
Expand Down
Loading

0 comments on commit f523e39

Please sign in to comment.