v144 · Web APIs · demo
Clipboard Router
Every clipboardchange event gets inspected and routed to a handler based on its MIME type. Toggle routes on/off to see how the router dispatches plain text, HTML, and image data to different preview panels — without polling.
Copy anything to your clipboard — text, an image, rich content from another tab — and the router will automatically detect the format and dispatch it to the appropriate handler. Clipboard read permission is required.
Not listening yet. Click "Start listening" to request clipboard-read permission.
Routes 0 active
Handler outputs
text/plain
—
text/html
—
image/png or image/jpeg
—
Event log
- —infoWaiting for clipboard events…