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
This commit is contained in:
Palloxin
2025-01-17 01:35:48 +01:00
committed by GitHub
parent 4bad4b0398
commit a85375496b
+5 -2
View File
@@ -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(