diff --git a/plugins/english/novelfire.ts b/plugins/english/novelfire.ts index 5c1908891..d019e0f33 100644 --- a/plugins/english/novelfire.ts +++ b/plugins/english/novelfire.ts @@ -8,7 +8,7 @@ import { defaultCover } from '@/types/constants'; class NovelFire implements Plugin.PluginBase { id = 'novelfire'; name = 'Novel Fire'; - version = '1.1.4'; + version = '1.1.5'; icon = 'src/en/novelfire/icon.png'; site = 'https://novelfire.net/'; @@ -195,8 +195,13 @@ class NovelFire implements Plugin.PluginBase { const loadedCheerio = await this.getCheerio(url, false); const chapterText = loadedCheerio('#content'); - - loadedCheerio(chapterText).find('div').remove(); + const odds = chapterText.find(':not(p, h1, span, i, b, u, img, a, div)'); + for (const ele of odds.toArray()) { + const tag = ele.name.toString(); + if (tag.length > 5) { + loadedCheerio(ele).remove(); + } + } return chapterText.html()?.replace(/ /g, ' ') || ''; }