You can paste this into devtools. Note that the clipboard API requires the document to be focused, so we wrap in a timeout. You need to switch focus to the active document before the timeout fires.
window.setTimeout(async () => {
const contents = await navigator.clipboard.read();
for (var i = 0; i < contents.length; i++) {
const item = contents[i];
const types = item.types;
await types.forEach(async (t) => {
const value = await item.getType(t);
const text = await value.text();
console.log('Type', t, 'Text', text);
});
}
}, 1000);