We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 550ba44 commit f360bc2Copy full SHA for f360bc2
1 file changed
plugins/english/novelight.ts
@@ -10,7 +10,7 @@ import { storage } from '@libs/storage';
10
class Novelight implements Plugin.PagePlugin {
11
id = 'novelight';
12
name = 'Novelight';
13
- version = '1.1.3';
+ version = '1.1.4';
14
icon = 'src/en/novelight/icon.png';
15
site = 'https://novelight.net/';
16
@@ -232,8 +232,10 @@ class Novelight implements Plugin.PagePlugin {
232
return res.content;
233
});
234
235
- const loadedCheerio = parseHTML(body);
236
- const chapterText = loadedCheerio('.' + className).html() || '';
+ const $ = parseHTML(body);
+ $('script').remove();
237
+ $(`.${className} > *:not(br)`).after('<br>');
238
+ const chapterText = $('.' + className).html() || '';
239
240
return chapterText.replace(
241
/class="advertisment"/g,
0 commit comments