From 207fd44e7111f59ccfaedec77b9f77db608bd955 Mon Sep 17 00:00:00 2001 From: aka paul <50n50@noreply.localhost> Date: Sun, 30 Nov 2025 19:04:33 +0000 Subject: [PATCH] Update mangabuddy/mangabuddy.js --- mangabuddy/mangabuddy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mangabuddy/mangabuddy.js b/mangabuddy/mangabuddy.js index fb72de6..8c7ad77 100644 --- a/mangabuddy/mangabuddy.js +++ b/mangabuddy/mangabuddy.js @@ -10,7 +10,7 @@ async function searchContent(keyword, page=0) { while ((match = regex.exec(html)) !== null) { results.push({ id: "https://mangabuddy.com" + match[1].trim(), - imageURL: match[2].trim(), + imageURL: "https://passthrough-worker.simplepostrequest.workers.dev/?simple=" + match[2].trim() + "?referrer=https://mangabuddy.com", title: match[3].replace(/<[^>]+>/g, '').trim() }); } @@ -88,9 +88,9 @@ async function getChapterImages(url) { const regex = /var chapImages = '([^']*)'/; const match = regex.exec(html); if (match) { - const imagesString = match[1]; - const images = imagesString.split(','); - results.push(...images); + const images = match[1].split(','); + const processedImages = images.map(img => "https://passthrough-worker.simplepostrequest.workers.dev/?simple=" + img.trim() + "?referrer=https://mangabuddy.com"); + results.push(...processedImages); } return results;