From ec80636a4d294608d172103d1bce01c88c05258f Mon Sep 17 00:00:00 2001 From: kanasimi Date: Sun, 7 Jan 2024 20:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9F=E5=BA=A6=E9=81=8E=E5=BF=AB=E6=9C=83?= =?UTF-8?q?=E8=A2=AB=E5=B0=81=E9=8E=96=E6=95=B8=E5=80=8B=E5=B0=8F=E6=99=82?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- novel.cmn-Hans-CN/69shu.js | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/novel.cmn-Hans-CN/69shu.js b/novel.cmn-Hans-CN/69shu.js index bb56cd32..c096306a 100644 --- a/novel.cmn-Hans-CN/69shu.js +++ b/novel.cmn-Hans-CN/69shu.js @@ -24,7 +24,8 @@ var crawler = new CeL.work_crawler({ // Using AmazonS3 search_work_interval : '2s', - // chapter_time_interval : '2s', + // 速度過快會被封鎖數個小時。 + chapter_time_interval : '2s', // 2018/2/4前: https://www.69shu.com/ // 2023/8/18前改: https://www.69shuba.com/ @@ -184,20 +185,30 @@ var crawler = new CeL.work_crawler({ || text.between(null, ''); // console.log(html); - // 會先以作品標題起頭。 + // 有些章節會先以章節標題起頭。 text = CeL.work_crawler.trim_start_title(html, chapter_data); /** * + https://www.69shuba.com/txt/51594/33706898 请公子斩妖 第788章 神器回来了 【求月票!】 + 以后东躲XZ的日子就过去了, + + */ + text = CeL.work_crawler.fix_general_censorship(text); - // https://www.69shuba.com/txt/47114/31439934 第1章 老祖又纳妾了 -   (本章完) + text = CeL.work_crawler.fix_general_ADs(text); + + /** + * + + // https://www.69shuba.com/txt/51594/33699533 請公子斬妖 > 第3章 換劍閣 +   
*/ - text = text.replace(/\(本章完\)\s*$/, ''); - - // text = CeL.work_crawler.fix_general_ADs(text); + text = text.replace(/]*>[\s\S]*?<\/script>/g, ''); + text = text.replace(/  
<\/div>/g, + '

'); // console.trace([ html, text ]); this.add_ebook_chapter(work_data, chapter_NO, text);