5 ms·
There are also people doing this by listening to the element.copy event then switching out the selected element. TYNT[0] are the primary culprits (they promise
by adam-a 11y ago
There are also people doing this by listening to the element.copy event then switching out the selected element. TYNT[0] are the primary culprits (they promise to let you "leverage on site copy and paste activity"). I found out about this a while back and made a demo and a small writeup[1].
This method is totally impossible to spot, works for Ctrl-C as well as right-click copy, and is fairly widely supported.
0 - http://tynt.com/ http://tynt.com/
1 - http://joeba.in/joebain/Javascript%20Copy%20Hijack http://joeba.in/joebain/Javascript%20Copy%20Hijack
- mbrock 11y agoSemi-interesting trivia. Trello lets you copy the URL of a card by just hovering it and hitting Ctrl-C. They do this by intercepting Ctrl to change the current selection to an invisible input field...
- Latty 11y agoIf you just want to inject things into a copy-paste, you don't even need javascript: http://www.lattyware.co.uk/examples/injecting-text-into-clipboard.html http://www.lattyware.co.uk/examples/injecting-text-into-clip...