forked from 50n50/sources
Update dev/dev.js
This commit is contained in:
+29
-5
@@ -1,18 +1,42 @@
|
||||
async function searchResults(keyword) {
|
||||
const results = [];
|
||||
try {
|
||||
const anagram = _0xB4F2();
|
||||
// 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");
|
||||
|
||||
results.push({
|
||||
title: anagram,
|
||||
image: "",
|
||||
href: ""
|
||||
title: b4f2Result || "No anagram returned",
|
||||
image: `Valid: ${validationResult}`,
|
||||
href: `Check: ${checkResult}`
|
||||
});
|
||||
|
||||
return JSON.stringify(results);
|
||||
} catch (err) {
|
||||
console.error("Error:", err);
|
||||
return JSON.stringify([{
|
||||
title: "Error",
|
||||
title: "Error: " + err.message,
|
||||
image: "Error",
|
||||
href: "Error"
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user