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

123 lines
3.9 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
}
}
2026-01-17 19:23:53 +00:00
function _0xCheck() {
var _0x1a = typeof _0xB4F2 === "function";
var _0x2b = typeof _0x7E9A === "function";
if (_0x1a && _0x2b) {
return function (_0x3c) {
return _0x7E9A(_0x3c);
}(_0xB4F2());
} else {
return false;
}
}
function _0x7E9A(_) {
return ((___, ____, _____, ______, _______, ________, _________, __________, ___________, ____________) => {
____ = typeof ___;
_____ = ___ && ___[String.fromCharCode(...[108, 101, 110, 103, 116, 104])];
______ = [...String.fromCharCode(...[99, 114, 97, 110, 99, 105])];
_______ = ___ ? [...___[String.fromCharCode(...[116, 111, 76, 111, 119, 101, 114, 67, 97, 115, 101])]()] : [];
if (________ = ______[String.fromCharCode(...[115, 108, 105, 99, 101])]()) {
_______[String.fromCharCode(...[102, 111, 114, 69, 97, 99, 104])]((_________, __________) => (___________ = ________[String.fromCharCode(...[105, 110, 100, 101, 120, 79, 102])](_________)) >= 0 && ________[String.fromCharCode(...[115, 112, 108, 105, 99, 101])](___________, 1));
}
return ____ === String.fromCharCode(...[115, 116, 114, 105, 110, 103]) && _____ === 16 && ________[String.fromCharCode(...[108, 101, 110, 103, 116, 104])] === 0;
})(_);
}
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/";
}
}