Discussions » Creation Requests
Script for simplenote.com
https://stackoverflow.com/posts/54455498/timeline
https://jsfiddle.net/YordanGeorgiev/htdbjpo0/
It's not really easy to paste text from the clipboard using js, since this could be a security flaw because websites could read what everyone have in their clipboard. It's pretty easy to copy stuff to the clipboard though.
I once found a few ways that were kind of complex to make the js paste what was on the user clipboard, but this will show up a browser pop up that the user must click on a message that is kind of "I accept this website to have access to my clipboard", this is a browser security feature.
The thing that you are requesting already exists on any browser.
1 copy something
2 click/focus on some input box on any website
3 right click
4 Then the "paste" button will appear on the context menu
And how hard to create a script like this?
Hard enough. Why do you can't use Ctrl+V combination?
And how hard to create a script like this?
Hard enough. Why do you can't use Ctrl+V combination?
I can use combination, but it faster and more comfortable to use mouse. I just think, maybe it can be realized like getElementById('this context menu') and then insert a new item 'Paste' in the context menu. And then the script itself that already paste text from clipboard.
No, as I previously said, it's not that easy
Hello, can someone help or at least explain in few words how to add in context menu new item "Paste" to paste text from clipboard by using mouse. And how hard to create a script like this?