I ran into a a site that injects a "Read More: " line at the end of any text that you highlight and copy from it's pages.
I've never seen this before, and without severely digging into their code, I can't find the code that does this.
Anyone know how this is done?
Example: http://peaceful-parenting.suite101.com/article.cfm/how_to_keep_kids_from_climbing_on
Copy a paragraph of text, and paste it into another application, and there will be a "read more" line afterwards.
Suite101 is using a 3rd party service called Tynt.
Tynt's JavaScript snippet is located at http://tcr.tynt.com/javascripts/Tracer.js
I explored the source for you (with some help from the Online JavaScript beautifier).
So here's what's happening:
startListeningForTraces
function)<div>
(to keep it invisible on-screen)Tynt's code does a tremendous amount of work to make this work seamlessly across browsers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With