diff --git a/dev/dev.js b/dev/dev.js index f727cf7..c2f1a02 100644 --- a/dev/dev.js +++ b/dev/dev.js @@ -1,65 +1,28 @@ async function searchResults(keyword) { const results = []; try { - const b4f2Result = _0xB4F2(); - console.log("=== ANAGRAM DEBUG ==="); - console.log("_0xB4F2() returns:"+ b4f2Result); - console.log("Type:"+ typeof b4f2Result); - console.log("Length:"+ b4f2Result?.length); - - const validationResult = _0x7E9A(b4f2Result); - console.log("_0x7E9A validation:"+ validationResult); - - const checkResult = _0xCheck(); - console.log("_0xCheck() result:"+ checkResult); - - const testAnagram = "me.cranci.sulfur"; - console.log("\nTest with 'me.cranci.sulfur':"+ _0x7E9A(testAnagram)); - - console.log("==================\n"); - - results.push({ - title: b4f2Result || "No anagram returned", - image: `Valid: ${validationResult}`, - href: `Check: ${checkResult}` - }); + const response = await fetchv2(); + const html = await response.text(); + + let match; + while ((match = regex.exec(html)) !== null) { + results.push({ + title: match[3].trim(), + image: match[2].trim(), + href: match[1].trim() + }); + } return JSON.stringify(results); } catch (err) { - console.error("Error:", err); return JSON.stringify([{ - title: "Error: " + err.message, + title: "Error", image: "Error", href: "Error" }]); } } -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; - })(_); -} - async function extractDetails(url) { try { const response = await fetchv2(url);