To this page, almost anywhere on the page, if you copy, you will get a line Read more at http://added to the end of your copy. I was wondering how. Looking at the source (post-copypaste.js) and setting a breakpoint, I did not understand. This area seems to fire when I select text.
I tried to look at the DOM (by viewing the selected source in firefox) and I did not see the text in dom. So this should be a javascript trick. I can imagine how to catch the C control event (I don’t know if this is what happens), but I can’t imagine how you can add or influence the text to be compiled, since it belongs to dom. I do not see flicker or anything.
How does this JS trick work or how to debug it to figure it out?
user34537
source
share