forked from 50n50/sources
Update animez/animez.js
This commit is contained in:
+6
-2
@@ -7,9 +7,13 @@ async function searchResults(keyword) {
|
||||
|
||||
let match;
|
||||
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({
|
||||
title: match[3].trim(),
|
||||
image: "https://animeyy.com/" + match[2].trim(),
|
||||
title: title,
|
||||
image: passthroughImage,
|
||||
href: "https://animeyy.com" + match[1].trim()
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user