@puberty-labs/clits
Version:
CLiTS (Chrome Logging and Inspection Tool Suite) is a powerful Node.js library for automated Chrome browser testing, logging, and inspection. It provides a comprehensive suite of tools for monitoring network requests, console logs, DOM mutations, and more
10 lines (9 loc) • 492 B
JavaScript
// BSD: Injects a script into the browser context to monitor common user interaction events (clicks, key presses, input changes) and report their details via console logs.
export const USER_INTERACTION_MONITOR_SCRIPT = `
(function() {
document.addEventListener('click', (event) => {
console.log('[CLiTS-Interaction-Monitor] Click event detected on target:', event.target.tagName);
}, true);
console.log('[CLiTS-Interaction-Monitor] User interaction monitoring injected.');
})();
`;