// Reports click positions as viewport percentages. Injected only while recording. (function () { if (window.__dpCaptureInstalled) return; window.__dpCaptureInstalled = true; document.addEventListener( "click", (e) => { chrome.runtime.sendMessage({ type: "click", xPct: (e.clientX / window.innerWidth) * 100, yPct: (e.clientY / window.innerHeight) * 100, }); }, true, ); })();