Update animez/animez.js

This commit is contained in:
aka paul 2026-01-06 14:40:41 +00:00
parent cc1733742e
commit 100d6dabbb

View file

@ -7,9 +7,13 @@ async function searchResults(keyword) {
let match;
while ((match = regex.exec(html)) !== null) {
let title = match[3].trim();
title = title.replace(/&#39;/g, "'").replace(/&quot;/g, '"').replace(/&amp;/g, '&').replace(/&lt;/g, '<').replace(/&gt;/g, '>');
const imageUrl = "https://animeyy.com/" + match[2].trim();
const passthroughImage = "https://passthrough-worker.simplepostrequest.workers.dev/?simple=" + encodeURIComponent(imageUrl) + "&referer=https://animeyy.com/";
results.push({
title: match[3].trim(),
image: "https://animeyy.com/" + match[2].trim(),
title: title,
image: passthroughImage,
href: "https://animeyy.com" + match[1].trim()
});
}