S
S
SuperKozel2012-06-27 23:59:57
JavaScript
SuperKozel, 2012-06-27 23:59:57

How to track the sources (sites) from which copy-paste was made to my page?

There is a current task on the functionality of the system, it is necessary that when inserting text from another site, along with the content, get the address of the page from which the site was received. An attempt to implement an internal "browser" on my page using an iframe has come to a standstill, because access restrictions on the window and document iframe do not allow either to track the copy event or get the current link.
While I'm considering two other options:
1. Make a proxy page on my domain, and open it in an iframe to bypass the restrictions.
But I'm not at all sure about the quality of such a solution, and that it will work satisfactorily
2. Browser Plugin

Can anyone suggest a solution?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
rPman, 2012-06-28
@rPman

If your project is a convenient mechanism for copy-paste, then the best thing to recommend here is to implement the functionality in the form of a plug-in for browsers.
Let it be optional, but its users will be provided with goodies. Let it be 1-click install. No need to mess around with buffer parsing and so on… just provide the tools to conveniently specify the copied text on the pages.

N
Nikolai Turnaviotov, 2012-06-28
@foxmuldercp

and javascript has nothing to do with it, it's more systemic.

N
Nikolai Turnaviotov, 2012-06-28
@foxmuldercp

I would try to write some kind of software that would monitor an attempt to copy something to the clipboard, look at open browser tabs, try to get the open-current one, gnaw out the url and add it to the text that is copied. If punto switcher can save texts from the clipboard to a text file, who prevents ctrl-c / ctrl-x from adding more functionality?

N
Nikolai Turnaviotov, 2012-06-29
@foxmuldercp

Browser plugins can be heavily sandboxed and won't let you get far. It’s easier than a tulzovinka hanging in the tray

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question