diff --git a/src/plugins/english/novelupdates.ts b/src/plugins/english/novelupdates.ts index 318a50f94..22e9a9b44 100644 --- a/src/plugins/english/novelupdates.ts +++ b/src/plugins/english/novelupdates.ts @@ -6,7 +6,7 @@ import { Plugin } from '@typings/plugin'; class NovelUpdates implements Plugin.PluginBase { id = 'novelupdates'; name = 'Novel Updates'; - version = '0.9.2'; + version = '0.9.3'; icon = 'src/en/novelupdates/icon.png'; customCSS = 'src/en/novelupdates/customCSS.css'; site = 'https://www.novelupdates.com/'; @@ -309,9 +309,23 @@ class NovelUpdates implements Plugin.PluginBase { throw new Error(`Failed to parse Canon Story chapter: ${error}`); } } - // Last edited in 0.9.0 by Batorian - 19/03/2025 + // Last edited in 0.9.3 by Batorian - 09/09/2025 case 'daoist': { chapterTitle = loadedCheerio('.chapter__title').first().text(); + + // Remove locked content indicators + loadedCheerio('span.patreon-lock-icon').remove(); + + // Handle lazy-loaded images + loadedCheerio('img[data-src]').each((_, el) => { + const $el = loadedCheerio(el); + const dataSrc = $el.attr('data-src'); + if (dataSrc) { + $el.attr('src', dataSrc); + $el.removeAttr('data-src'); + } + }); + chapterContent = loadedCheerio('.chapter__content').html()!; break; }