From 7aef598dcdb0abcf9e0e8ba8fff61933f9143f62 Mon Sep 17 00:00:00 2001 From: K1ngfish3r <26593485+K1ngfish3r@users.noreply.github.com> Date: Tue, 7 Apr 2026 07:34:33 +0500 Subject: [PATCH] feat: Add Patreon Support in Novel Updates (#2103) --- plugins/english/novelupdates.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/english/novelupdates.ts b/plugins/english/novelupdates.ts index 0a9279c..a824f5f 100644 --- a/plugins/english/novelupdates.ts +++ b/plugins/english/novelupdates.ts @@ -6,7 +6,7 @@ import { Plugin } from '@/types/plugin'; class NovelUpdates implements Plugin.PluginBase { id = 'novelupdates'; name = 'Novel Updates'; - version = '0.9.7'; + version = '0.9.8'; icon = 'src/en/novelupdates/icon.png'; customCSS = 'src/en/novelupdates/customCSS.css'; site = 'https://www.novelupdates.com/'; @@ -626,6 +626,16 @@ class NovelUpdates implements Plugin.PluginBase { chapterContent = chapterCheerio.html()!; break; } + // Last edited in 0.9.8 by K1ngfish3r - 04/04/2026 + // CF hyper aggressive or just NU shenanigans, login to patreon is 50/50 + case 'patreon': { + loadedCheerio('#track-click,[class*="hidden "]').remove(); + chapterTitle = loadedCheerio('h1[data-tag="post-title"]').text(); + chapterContent = loadedCheerio( + '[data-tag="post-card"] [class*="PaddingTop"]', + ).html()!; + break; + } // Last edited in 0.9.7 by Batorian - 18/03/2026 case 'r-p-d': { let parts = chapterPath.split('/'); @@ -656,7 +666,7 @@ class NovelUpdates implements Plugin.PluginBase { // Wrap the entire part content // We replace \n\n with

and wrap the edges in

and

- let formattedPart = + const formattedPart = '

' + part.markdown.replace(/\n\n/g, '

') + '

'; chapterText += formattedPart;