From a85375496b353b25f136f4430368e1545f3de29c Mon Sep 17 00:00:00 2001 From: Palloxin <75091899+Palloxin@users.noreply.github.com> Date: Fri, 17 Jan 2025 01:35:48 +0100 Subject: [PATCH] NovelFull: regex to remove end-chapter spam (#1188) * NovelFull: regex to remove end-chapter spam It's in every chapter, at the end. * version increase * lint * \s --- src/plugins/english/novelfull.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/english/novelfull.ts b/src/plugins/english/novelfull.ts index 81bface..4f8f3a4 100644 --- a/src/plugins/english/novelfull.ts +++ b/src/plugins/english/novelfull.ts @@ -6,7 +6,7 @@ import { Filters, FilterTypes } from '@libs/filterInputs'; class NovelFull implements Plugin.PluginBase { id = 'novelfull'; name = 'NovelFull'; - version = '1.0.0'; + version = '1.0.1'; icon = 'src/en/novelfull/icon.png'; site = 'https://novelfull.com/'; @@ -119,7 +119,10 @@ class NovelFull implements Plugin.PluginBase { loadedCheerio('#chapter-content div.ads').remove(); const chapterText = loadedCheerio('#chapter-content').html() || ''; - return chapterText; + return chapterText.replace( + /If you find any errors \(\s*Ads popup, ads redirect, broken links, non-standard content, etc\.\.\s*\), Please let us know \S* report chapter \S* so we can fix it as soon as possible\./, + '', + ); } async searchNovels(