News for hackers. Stuff that matters.
Re:Here is the 15 sec coding test I used to instantly filter... by sond on Wednesday December 17, 2025 @05:36PM (#46306537)
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.

Re:Here is the 15 sec coding test I used to instantly filter... by Aloisius on Wednesday December 17, 2025 @05:42PM (#46306610)
Or add aria-hidden=true

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.

Re:Here is the 15 sec coding test I used to instantly filter... by croon on Thursday December 18, 2025 @06:14AM (#46311310)
My take on that is that the very slim minority who does this are also likely passable through this very blunt hiring tool anyways.