Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<script>
"use strict";
for (const type of ["mousedown", "mousemove", "mouseup",
"touchstart", "touchmove", "touchend",
"pointerdown", "pointermove", "pointerup",
"click", "dblclick", "contextmenu"]) {
document.addEventListener(type, ev => {
window.top.postMessage({ from: location.origin, type: ev.type }, "*");
if (ev.type === "contextmenu") {
ev.preventDefault();
}
});
}
</script>