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