Tests what's needed to read the clipboard in different browsers.
Select and copy this text (Ctrl/Cmd+C), so there's something in the clipboard to read:
Calls navigator.clipboard.readText() inside a click handler. This is the "happy path" — most browsers allow this with a permission prompt.
Tries to read the clipboard immediately when the page loads, without any user interaction. Most browsers block this.
Clicks the button, but the actual read happens in a setTimeout(..., 1000). Tests whether the user gesture is still "fresh" after a delay.
Queries navigator.permissions.query({ name: 'clipboard-read' }) to see the current permission state.
Listens for a paste event on the document. Click inside this box, then press Ctrl/Cmd+V.