fix: Novelight Line Spacing (#1980)

This commit is contained in:
Rojikku
2026-01-13 02:16:44 -05:00
committed by GitHub
parent 550ba44479
commit f360bc2f44
+5 -3
View File
@@ -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('<br>');
const chapterText = $('.' + className).html() || '';
return chapterText.replace(
/class="advertisment"/g,