Skip to content

Commit

Permalink
5.2.3 修正 qdmm.com
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Oct 1, 2015
1 parent b67b9e2 commit fbcf452
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 52 deletions.
52 changes: 26 additions & 26 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.2
// @version 5.2.3
// @namespace https://github.com/ywzhaiqi
// @author ywzhaiqi
// @contributor Roger Au, shyangs, JixunMoe、akiba9527 及其他网友
Expand Down Expand Up @@ -392,9 +392,30 @@ Rule.specialSite = [
}
},
// 特殊站点,需再次获取且跨域。添加 class="reader-ajax",同时需要 src, charset
{siteName: "起点中文、起点女生、起点文学",
url: "^http://(www|read|readbook|wwwploy|cga|big5ploy)\\.(qidian|qdmm|qdwenxue)\\.com/BookReaderOld/.*",
{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(/,\w+\.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",
Expand Down Expand Up @@ -425,28 +446,6 @@ Rule.specialSite = [
fakeStub.find('script[src$=".txt"]').addClass('reader-ajax');
},
},
{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(/,\w+\.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://free\\.qidian\\.com/Free/ReadChapter\\.aspx",
titleSelector: ".title > h3",
Expand Down Expand Up @@ -1124,7 +1123,8 @@ Rule.specialSite = [
contentReplace: [
'更新最快【】',
'</dd>',
'<center> <fon color=red>'
'<center> <fon color=red>',
'一秒记住【武林中文网.*',
]
},
{siteName: "乡村小说网",
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.2",
"version": "5.2.3",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
Expand Down
50 changes: 25 additions & 25 deletions MyNovelReader/src/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,30 @@ Rule.specialSite = [
}
},
// 特殊站点,需再次获取且跨域。添加 class="reader-ajax",同时需要 src, charset
{siteName: "起点中文、起点女生、起点文学",
url: "^http://(www|read|readbook|wwwploy|cga|big5ploy)\\.(qidian|qdmm|qdwenxue)\\.com/BookReaderOld/.*",
{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(/,\w+\.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",
Expand Down Expand Up @@ -114,28 +135,6 @@ Rule.specialSite = [
fakeStub.find('script[src$=".txt"]').addClass('reader-ajax');
},
},
{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(/,\w+\.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://free\\.qidian\\.com/Free/ReadChapter\\.aspx",
titleSelector: ".title > h3",
Expand Down Expand Up @@ -813,7 +812,8 @@ Rule.specialSite = [
contentReplace: [
'更新最快【】',
'</dd>',
'<center> <fon color=red>'
'<center> <fon color=red>',
'一秒记住【武林中文网.*',
]
},
{siteName: "乡村小说网",
Expand Down

0 comments on commit fbcf452

Please sign in to comment.