Lines 2706-2746javascript
2706 const perf = performance.getEntriesByType("navigation")[0];
2708 lines.push(`Load: ${Math.round(perf.loadEventEnd - perf.startTime)}ms (DOM: ${Math.round(perf.domContentLoadedEventEnd - perf.startTime)}ms)`);
2710 return lines.filter((l) => !l.endsWith(": ")).join("\n");
2712 var inlineConsole = /* @__PURE__ */ (() => {
2716 let visible = false;
2717 function ensureMount() {
2719 root = document.createElement("div");
2720 root.id = "hanzo-console-root";
2721 root.style.cssText = "position:fixed;bottom:20px;left:20px;right:20px;z-index:2147483646;font-family:Geist Mono,Menlo,Consolas,monospace;font-size:12px;display:none;";
2723 <div style="background:rgba(0,0,0,0.92);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.15);border-radius:10px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,0.5);">
2724 <div id="hanzo-console-output" style="max-height:200px;overflow-y:auto;padding:8px 12px;color:#ccc;white-space:pre-wrap;word-break:break-all;"></div>
2725 <div style="display:flex;align-items:center;border-top:1px solid rgba(255,255,255,0.1);padding:0 12px;">
2726 <span style="color:#666;margin-right:6px;">></span>
2727 <input id="hanzo-console-input" type="text" placeholder="eval(...)" style="flex:1;background:transparent;border:none;color:#fff;font:inherit;padding:10px 0;outline:none;">
2728 <span style="color:#444;font-size:10px;margin-left:8px;">Esc to close</span>
LowEval
Package source references a known benign dynamic code generation pattern.
dist/browser-extension/firefox/content-script.jsView on unpkg · L2726 2732 document.body.appendChild(root);
2733 input = root.querySelector("#hanzo-console-input");
2734 output = root.querySelector("#hanzo-console-output");
2735 input == null ? void 0 : input.addEventListener("keydown", (e) => {
2736 if (e.key === "Escape") {
2740 if (e.key !== "Enter" || !(input == null ? void 0 : input.value.trim())) return;
2741 const expr = input.value.trim();
2743 appendLine(`> ${expr}`, "#888");
2745 const result = (0, eval)(expr);
2746 appendLine(String(result), "#4CAF50");