diff --git a/src/plugins/english/freewebnovel.ts b/src/plugins/english/freewebnovel.ts index 2d2bfd0b1..902c5ba9a 100644 --- a/src/plugins/english/freewebnovel.ts +++ b/src/plugins/english/freewebnovel.ts @@ -7,11 +7,11 @@ class FreeWebNovel implements Plugin.PluginBase { id = 'FWN.com'; name = 'Free Web Novel'; site = 'https://freewebnovel.com/'; - version = '1.1.2'; + version = '1.1.3'; icon = 'src/en/freewebnovel/icon.png'; lastSearch: number | null = null; - searchInterval = 3200; + searchInterval = 3400; async sleep(ms: number) { return new Promise(resolve => setTimeout(resolve, ms)); @@ -122,12 +122,10 @@ class FreeWebNovel implements Plugin.PluginBase { loadedCheerio('div.txt').find('p:last-child').remove(); const chapterText = loadedCheerio('div.txt').html() || ''; - return chapterText - .replace( - /
\s*(?:(?:This (?:chapter is updated by|content is taken from)|Follow current novels on|Updated from) )?(?:[ƒfF][Rrɾг][Eēeё][Eēёe][Wwω][Eёēe][Bbɓ][Nnɳη][Oø૦ѳσo][Vѵv][Eёeē][LlℓɭI\|]\.\s?[Cƈcç][O૦σøoѳ][M๓ɱm]|ꜰʀᴇᴇᴡᴇʙɴᴏᴠᴇʟ)\.?/g, - '
', - ) - .replace(/
\s*Visit for the best novel reading experience\.?/g, '
');
+ return chapterText.replace(
+ />([^<\.]+?\.)?[^\.<]*?\b[ƒfF][Rrɾг][Eēeё]+[Wwω𝑤]+[Eёēe][Bbɓ][Nnɳη][Oø૦ѳσo][Vѵνv][Eёeē][^<]*/g,
+ '>$1',
+ );
}
async searchNovels(searchTerm: string): Promise