async function searchResults(keyword) { try { const encodedKeyword = encodeURIComponent(keyword); const url = `https://wuxiaworld.eu/api/search/?search=${encodedKeyword}&offset=0&limit=40&order=`; const response = await soraFetch(url); const data = await response.json(); const results = data.results.map(item => ({ title: item.name || "Untitled", href: `https://wuxiaworld.eu/novel/${item.slug}`, image: item.image && item.image.startsWith("http") ? item.image : "" })); console.log(JSON.stringify(results)); return JSON.stringify(results); } catch (error) { console.error("Error fetching or parsing:"+ error); return JSON.stringify([{ title: "Error", href: "", image: "" }]); } } async function extractDetails(url) { try { const response = await soraFetch(url); const htmlText = await response.text(); const jsonMatch = htmlText.match(/