Update anime-sama/anime-sama.js

This commit is contained in:
aka paul 2025-11-02 16:49:00 +00:00
parent ab315e47cd
commit 5e48bd834f

View file

@ -3,14 +3,14 @@ async function searchResults(keyword) {
const headers = {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"X-Requested-With": "XMLHttpRequest",
"referer": "https://anime-sama.fr/"
"referer": "https://anime-sama.org/"
};
const regex = /<a[^>]+href="([^"]+)"[\s\S]*?<img[^>]+src="([^"]+)"[\s\S]*?<h3[^>]*>(.*?)<\/h3>/gi;
try {
const response = await fetchv2(
"https://anime-sama.fr/template-php/defaut/fetch.php",
"https://anime-sama.org/template-php/defaut/fetch.php",
headers,
"POST",
`query=${encodeURIComponent(keyword)}`