FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

MyNovelReader 6.2.5 修正欢乐书客标题会多出数字的问题 · hsingko/userscript@b9e8051 · GitHub

Repository navigation

Commit b9e8051

Browse files
committed
MyNovelReader 6.2.5 修正欢乐书客标题会多出数字的问题
1 parent b00f314 commit b9e8051

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

‎scripts/MyNovelReader.user.js‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue;
2222
// @name My Novel Reader
2323
// @name:zh-CN 小说阅读脚本
2424
// @name:zh-TW 小說閱讀腳本
25-
// @version 6.2.4
25+
// @version 6.2.5
2626
// @namespace https://github.com/ywzhaiqi
2727
// @author ywzhaiqi
2828
// @contributor Roger Au, shyangs, JixunMoe、akiba9527 及其他网友
@@ -387,6 +387,7 @@ Vue = Vue && Vue.hasOwnProperty('default') ? Vue['default'] : Vue;
387387
// @include *://www.011bz.com/*/*.html
388388
// @include *://www.quanben.io/*/*/*.html
389389
// @include *://www.b5200.org/*/*.html
390+
// @include *://www.b5200.net/*/*.html
390391

391392
// 移动版
392393
// @include *://wap.yc.ireader.com.cn/book/*/*/
@@ -2449,7 +2450,7 @@ const sites = [
24492450
{siteName: "欢乐书客",
24502451
url: "^https?://www\\.hbooker\\.com/chapter/book_chapter_detail/\\d+",
24512452
bookTitleSelector: ".breakcrumb > a:last",
2452-
titleSelector: ".book-read-box .read-hd h3",
2453+
titleSelector: "#J_BookCnt h3",
24532454
useiframe: true,
24542455
timeout: 500,
24552456
contentSelector: ".book-read-box .read-bd",
@@ -2462,6 +2463,9 @@ const sites = [
24622463
prevUrl: function ($doc){
24632464
return $doc.find('#J_BtnPagePrev').attr('data-href');
24642465
},
2466+
contentPatch: function($doc) {
2467+
$doc.find('#J_BookCnt h3 i').remove();
2468+
}
24652469
},
24662470
{siteName: '棉花糖小说网',
24672471
url: '^https?://www\\.mht\\.la/\\d+/\\d+/\\d+\\.html',
@@ -2666,9 +2670,10 @@ const sites = [
26662670
},
26672671
{siteName: '新笔趣阁5200',
26682672
exampleUrl: 'http://www.b5200.org/78_78809/151096665.html',
2669-
url: '^http://www\\.b5200\\.org/.*?/\\d+\\.html',
2673+
url: '^http://www\\.b5200\\.(?:org|net)/.*?/\\d+\\.html',
26702674
contentReplace: [
26712675
'网首发',
2676+
'≈bp;≈bp;≈bp;≈bp;',
26722677
]
26732678
},
26742679

‎src/MyNovelReader/meta.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name My Novel Reader
44
// @name:zh-CN 小说阅读脚本
55
// @name:zh-TW 小說閱讀腳本
6-
// @version 6.2.4
6+
// @version 6.2.5
77
// @namespace https://github.com/ywzhaiqi
88
// @author ywzhaiqi
99
// @contributor Roger Au, shyangs, JixunMoe、akiba9527 及其他网友
@@ -368,6 +368,7 @@
368368
// @include *://www.011bz.com/*/*.html
369369
// @include *://www.quanben.io/*/*/*.html
370370
// @include *://www.b5200.org/*/*.html
371+
// @include *://www.b5200.net/*/*.html
371372

372373
// 移动版
373374
// @include *://wap.yc.ireader.com.cn/book/*/*/

‎src/MyNovelReader/rule/sites.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ const sites = [
17571757
{siteName: "欢乐书客",
17581758
url: "^https?://www\\.hbooker\\.com/chapter/book_chapter_detail/\\d+",
17591759
bookTitleSelector: ".breakcrumb > a:last",
1760-
titleSelector: ".book-read-box .read-hd h3",
1760+
titleSelector: "#J_BookCnt h3",
17611761
useiframe: true,
17621762
timeout: 500,
17631763
contentSelector: ".book-read-box .read-bd",
@@ -1770,6 +1770,9 @@ const sites = [
17701770
prevUrl: function ($doc){
17711771
return $doc.find('#J_BtnPagePrev').attr('data-href');
17721772
},
1773+
contentPatch: function($doc) {
1774+
$doc.find('#J_BookCnt h3 i').remove()
1775+
}
17731776
},
17741777
{siteName: '棉花糖小说网',
17751778
url: '^https?://www\\.mht\\.la/\\d+/\\d+/\\d+\\.html',
@@ -1974,9 +1977,10 @@ const sites = [
19741977
},
19751978
{siteName: '新笔趣阁5200',
19761979
exampleUrl: 'http://www.b5200.org/78_78809/151096665.html',
1977-
url: '^http://www\\.b5200\\.org/.*?/\\d+\\.html',
1980+
url: '^http://www\\.b5200\\.(?:org|net)/.*?/\\d+\\.html',
19781981
contentReplace: [
19791982
'网首发',
1983+
'≈bp;≈bp;≈bp;≈bp;',
19801984
]
19811985
},
19821986

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL