2 ms·
There's a library for accessing the clipboard within JS[1]. As far as I can tell, the HTML5 APIs for it are designed to stop this from being used to steal your
by cyphar 10y ago
There's a library for accessing the clipboard within JS[1]. As far as I can tell, the HTML5 APIs for it are designed to stop this from being used to steal your clipboard but I somewhat doubt its effectiveness.
[1]: https://clipboardjs.com/ https://clipboardjs.com/
- emodendroket 10y agoThat seems to let you write to the clipboard, not read it.
- cyphar 10y agoThe API used (document.execCommand) supports "paste" which lets you paste the current contents of the clipboard. However, it doesn't appear to work in my version of Chromium.