mirror of
https://git.luna-app.eu/50n50/sources
synced 2026-01-12 09:28:35 +01:00
Update animez/animez.js
This commit is contained in:
parent
cc1733742e
commit
100d6dabbb
1 changed files with 6 additions and 2 deletions
|
|
@ -7,9 +7,13 @@ async function searchResults(keyword) {
|
||||||
|
|
||||||
let match;
|
let match;
|
||||||
while ((match = regex.exec(html)) !== null) {
|
while ((match = regex.exec(html)) !== null) {
|
||||||
|
let title = match[3].trim();
|
||||||
|
title = title.replace(/'/g, "'").replace(/"/g, '"').replace(/&/g, '&').replace(/</g, '<').replace(/>/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({
|
results.push({
|
||||||
title: match[3].trim(),
|
title: title,
|
||||||
image: "https://animeyy.com/" + match[2].trim(),
|
image: passthroughImage,
|
||||||
href: "https://animeyy.com" + match[1].trim()
|
href: "https://animeyy.com" + match[1].trim()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue