|
|
|
|
|
by sond
191 days ago
|
|
Instead of the zero-width div, you could set up an event listener for the copy event (using addEventListener() method) which calls .clipboardData.setData() on the ClipboardEvent to change it to your modified code. That should avoid messing things up for people with screen readers while still trapping the copy+pasters. |
|
I've had clipboard events and the clipboard API disabled in my browser to prevent websites from intercepting them for ages. I can't be the only one.