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:
@@ -6,7 +6,7 @@ import { Filters, FilterTypes } from '@libs/filterInputs';
|
|||||||
class NovelFull implements Plugin.PluginBase {
|
class NovelFull implements Plugin.PluginBase {
|
||||||
id = 'novelfull';
|
id = 'novelfull';
|
||||||
name = 'NovelFull';
|
name = 'NovelFull';
|
||||||
version = '1.0.0';
|
version = '1.0.1';
|
||||||
icon = 'src/en/novelfull/icon.png';
|
icon = 'src/en/novelfull/icon.png';
|
||||||
site = 'https://novelfull.com/';
|
site = 'https://novelfull.com/';
|
||||||
|
|
||||||
@@ -119,7 +119,10 @@ class NovelFull implements Plugin.PluginBase {
|
|||||||
loadedCheerio('#chapter-content div.ads').remove();
|
loadedCheerio('#chapter-content div.ads').remove();
|
||||||
const chapterText = loadedCheerio('#chapter-content').html() || '';
|
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(
|
async searchNovels(
|
||||||
|
|||||||
Reference in New Issue
Block a user