1
0
forked from 50n50/sources
Files
sources-fork/dev/dev.js
T

98 lines
2.7 KiB
JavaScript
Raw Normal View History

2025-10-11 17:18:45 +02:00
async function searchResults(keyword) {
2026-01-03 18:49:35 +00:00
const results = [];
2025-10-11 17:18:45 +02:00
try {
2026-01-17 19:22:41 +00:00
// Log what _0xB4F2 returns
const b4f2Result = _0xB4F2();
console.log("=== ANAGRAM DEBUG ===");
console.log("_0xB4F2() returns:", b4f2Result);
console.log("Type:", typeof b4f2Result);
console.log("Length:", b4f2Result?.length);
// Log validation result
const validationResult = _0x7E9A(b4f2Result);
console.log("_0x7E9A validation:", validationResult);
// Log _0xCheck result
const checkResult = _0xCheck();
console.log("_0xCheck() result:", checkResult);
// Test with known good value
const testAnagram = "me.cranci.sulfur";
console.log("\nTest with 'me.cranci.sulfur':", _0x7E9A(testAnagram));
// Test with current domain
console.log("window.location.hostname:", window.location.hostname);
console.log("Validate hostname:", _0x7E9A(window.location.hostname));
console.log("==================\n");
2026-01-17 19:18:40 +00:00
results.push({
2026-01-17 19:22:41 +00:00
title: b4f2Result || "No anagram returned",
image: `Valid: ${validationResult}`,
href: `Check: ${checkResult}`
2026-01-17 19:18:40 +00:00
});
2025-10-11 17:18:45 +02:00
2026-01-03 18:49:35 +00:00
return JSON.stringify(results);
} catch (err) {
2026-01-17 19:22:41 +00:00
console.error("Error:", err);
2026-01-03 18:49:35 +00:00
return JSON.stringify([{
2026-01-17 19:22:41 +00:00
title: "Error: " + err.message,
2026-01-03 18:49:35 +00:00
image: "Error",
href: "Error"
}]);
2025-10-11 17:18:45 +02:00
}
}
async function extractDetails(url) {
try {
const response = await fetchv2(url);
const html = await response.text();
return JSON.stringify([{
description: description,
aliases: "N/A",
airdate: "N/A"
}]);
} catch (err) {
return JSON.stringify([{
description: "Error",
aliases: "Error",
airdate: "Error"
}]);
}
}
async function extractEpisodes(url) {
const results = [];
try {
const response = await fetchv2(url);
const html = await response.text();
let match;
while ((match = regex.exec(html)) !== null) {
results.push({
href: match[1].trim(),
number: parseInt(match[2], 10)
});
}
return JSON.stringify(results);
} catch (err) {
return JSON.stringify([{
href: "Error",
number: "Error"
}]);
}
}
async function extractStreamUrl(url) {
try {
const response = await fetchv2(url);
const html = await response.text();
return "https://error.org/";
} catch (err) {
return "https://error.org/";
}
}