From f2a83a8a358f39c7e16c75d7bd325dd98a324f34 Mon Sep 17 00:00:00 2001 From: Rojikku Date: Mon, 12 Jan 2026 19:24:45 -0500 Subject: [PATCH] fix: Novelight line spacing --- plugins/english/novelight.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/english/novelight.ts b/plugins/english/novelight.ts index ffe890e7e..27e2dc226 100644 --- a/plugins/english/novelight.ts +++ b/plugins/english/novelight.ts @@ -10,7 +10,7 @@ import { storage } from '@libs/storage'; class Novelight implements Plugin.PagePlugin { id = 'novelight'; name = 'Novelight'; - version = '1.1.3'; + version = '1.1.4'; icon = 'src/en/novelight/icon.png'; site = 'https://novelight.net/'; @@ -232,8 +232,10 @@ class Novelight implements Plugin.PagePlugin { return res.content; }); - const loadedCheerio = parseHTML(body); - const chapterText = loadedCheerio('.' + className).html() || ''; + const $ = parseHTML(body); + $('script').remove(); + $(`.${className} > *:not(br)`).after('
'); + const chapterText = $('.' + className).html() || ''; return chapterText.replace( /class="advertisment"/g,