Elektrine lite

← Feed

@ture@lemmy.ml

2026-10-24 18:07 UTC

You can do this kind of JS fuckery and overwrite the default copy behaviour. document.addEventListener("copy", (event) => { event.clipboardData.setData( "text/plain", "This is the text that will actually be pasted!" ); event.preventDefault(); }); Though I would always consider this super hostile design. The only sane place where something like this should be is a copy button you can click to automatically copy something into the clipboard.

Replies (0)

No replies.