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.


