From 3cda6253d30d75466914e4795607c46fa60fc281 Mon Sep 17 00:00:00 2001 From: MrPanda009 Date: Thu, 21 May 2026 00:48:00 +0530 Subject: [PATCH 1/6] fix(faqwikius): update site URL to include '/novel' for correct navigation --- plugins/english/faqwikius.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/english/faqwikius.ts b/plugins/english/faqwikius.ts index da88315c4..842608568 100644 --- a/plugins/english/faqwikius.ts +++ b/plugins/english/faqwikius.ts @@ -6,7 +6,7 @@ import { NovelStatus } from '@libs/novelStatus'; class FaqWikiUs implements Plugin.PluginBase { id = 'FWK.US'; name = 'Faq Wiki'; - site = 'https://faqwiki.us/'; + site = 'https://faqwiki.us/novel'; version = '2.0.1'; icon = 'src/en/faqwikius/icon.png'; From d2c7451a95bc7ea0743e8490d946499072e76f7b Mon Sep 17 00:00:00 2001 From: MrPanda009 Date: Thu, 21 May 2026 00:51:22 +0530 Subject: [PATCH 2/6] chore: bumped version of faqwiki --- plugins/english/faqwikius.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/english/faqwikius.ts b/plugins/english/faqwikius.ts index 842608568..e17dd4f12 100644 --- a/plugins/english/faqwikius.ts +++ b/plugins/english/faqwikius.ts @@ -7,7 +7,7 @@ class FaqWikiUs implements Plugin.PluginBase { id = 'FWK.US'; name = 'Faq Wiki'; site = 'https://faqwiki.us/novel'; - version = '2.0.1'; + version = '3.0.1'; icon = 'src/en/faqwikius/icon.png'; parseNovels(loadedCheerio: CheerioAPI, searchTerm?: string) { From 475c8822098ebcd8f7843887ddc252d6c14f99c4 Mon Sep 17 00:00:00 2001 From: MrPanda009 Date: Thu, 21 May 2026 05:21:21 +0530 Subject: [PATCH 3/6] fix(faqwikius): remove script tags from parsed HTML to clean up novel data --- plugins/english/faqwikius.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/english/faqwikius.ts b/plugins/english/faqwikius.ts index e17dd4f12..29fd313b2 100644 --- a/plugins/english/faqwikius.ts +++ b/plugins/english/faqwikius.ts @@ -12,6 +12,7 @@ class FaqWikiUs implements Plugin.PluginBase { parseNovels(loadedCheerio: CheerioAPI, searchTerm?: string) { let novels: Plugin.NovelItem[] = []; + loadedCheerio('script').remove(); loadedCheerio('.plt-page-item').each((index, element) => { const name = loadedCheerio(element) From bf3ff8a9b8c978d758141dfd3d141bda8f5a41df Mon Sep 17 00:00:00 2001 From: MrPanda009 Date: Thu, 21 May 2026 05:44:13 +0530 Subject: [PATCH 4/6] fix(faqwikius): move the remove script tags from parseNovels method to parseNovel method --- plugins/english/faqwikius.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/english/faqwikius.ts b/plugins/english/faqwikius.ts index 29fd313b2..e786e1b02 100644 --- a/plugins/english/faqwikius.ts +++ b/plugins/english/faqwikius.ts @@ -12,7 +12,6 @@ class FaqWikiUs implements Plugin.PluginBase { parseNovels(loadedCheerio: CheerioAPI, searchTerm?: string) { let novels: Plugin.NovelItem[] = []; - loadedCheerio('script').remove(); loadedCheerio('.plt-page-item').each((index, element) => { const name = loadedCheerio(element) @@ -58,6 +57,7 @@ class FaqWikiUs implements Plugin.PluginBase { async parseNovel(path: string): Promise { const body = await fetchApi(this.site + path).then(res => res.text()); const loadedCheerio = parseHTML(body); + loadedCheerio('script').remove(); const novel: Plugin.SourceNovel = { path, From aaab132787d5dc2c5f064d64cde882413fa53449 Mon Sep 17 00:00:00 2001 From: MrPanda009 Date: Thu, 21 May 2026 05:50:53 +0530 Subject: [PATCH 5/6] chore(faqwikius): rename parseNovels method to parseNovelList and parseNovel to parseNovelDetails for clarity --- plugins/english/faqwikius.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/english/faqwikius.ts b/plugins/english/faqwikius.ts index e786e1b02..6529f0869 100644 --- a/plugins/english/faqwikius.ts +++ b/plugins/english/faqwikius.ts @@ -10,7 +10,9 @@ class FaqWikiUs implements Plugin.PluginBase { version = '3.0.1'; icon = 'src/en/faqwikius/icon.png'; - parseNovels(loadedCheerio: CheerioAPI, searchTerm?: string) { + // Parses a list of NovelItem objects from already-loaded Cheerio HTML. + // "List" clarifies it returns NovelItem[] (used by popularNovels and searchNovels). + parseNovelList(loadedCheerio: CheerioAPI, searchTerm?: string) { let novels: Plugin.NovelItem[] = []; loadedCheerio('.plt-page-item').each((index, element) => { @@ -51,10 +53,12 @@ class FaqWikiUs implements Plugin.PluginBase { const body = await fetchApi(this.site).then(res => res.text()); const loadedCheerio = parseHTML(body); - return this.parseNovels(loadedCheerio); + return this.parseNovelList(loadedCheerio); } - async parseNovel(path: string): Promise { + // Fetches and parses a single novel's full details page (metadata, chapters, status). + // "Details" distinguishes it from the list parser above. + async parseNovelDetails(path: string): Promise { const body = await fetchApi(this.site + path).then(res => res.text()); const loadedCheerio = parseHTML(body); loadedCheerio('script').remove(); @@ -182,7 +186,7 @@ class FaqWikiUs implements Plugin.PluginBase { const body = await fetchApi(this.site).then(res => res.text()); const loadedCheerio = parseHTML(body); - return this.parseNovels(loadedCheerio, searchTerm); + return this.parseNovelList(loadedCheerio, searchTerm); } } From 52055c5d3bd9d1cb1a48e605bf0499c6d48aa24a Mon Sep 17 00:00:00 2001 From: MrPanda009 Date: Thu, 21 May 2026 05:57:56 +0530 Subject: [PATCH 6/6] fix(faqwikius): reversion of previous commit --- plugins/english/faqwikius.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/plugins/english/faqwikius.ts b/plugins/english/faqwikius.ts index 6529f0869..e786e1b02 100644 --- a/plugins/english/faqwikius.ts +++ b/plugins/english/faqwikius.ts @@ -10,9 +10,7 @@ class FaqWikiUs implements Plugin.PluginBase { version = '3.0.1'; icon = 'src/en/faqwikius/icon.png'; - // Parses a list of NovelItem objects from already-loaded Cheerio HTML. - // "List" clarifies it returns NovelItem[] (used by popularNovels and searchNovels). - parseNovelList(loadedCheerio: CheerioAPI, searchTerm?: string) { + parseNovels(loadedCheerio: CheerioAPI, searchTerm?: string) { let novels: Plugin.NovelItem[] = []; loadedCheerio('.plt-page-item').each((index, element) => { @@ -53,12 +51,10 @@ class FaqWikiUs implements Plugin.PluginBase { const body = await fetchApi(this.site).then(res => res.text()); const loadedCheerio = parseHTML(body); - return this.parseNovelList(loadedCheerio); + return this.parseNovels(loadedCheerio); } - // Fetches and parses a single novel's full details page (metadata, chapters, status). - // "Details" distinguishes it from the list parser above. - async parseNovelDetails(path: string): Promise { + async parseNovel(path: string): Promise { const body = await fetchApi(this.site + path).then(res => res.text()); const loadedCheerio = parseHTML(body); loadedCheerio('script').remove(); @@ -186,7 +182,7 @@ class FaqWikiUs implements Plugin.PluginBase { const body = await fetchApi(this.site).then(res => res.text()); const loadedCheerio = parseHTML(body); - return this.parseNovelList(loadedCheerio, searchTerm); + return this.parseNovels(loadedCheerio, searchTerm); } }