Arty Ziff
11-17-2010, 05:39 AM
There are a growing number of web sites that have a "feature" (if you want to call it that) where when you high-lite and copy some text, when you paste the text there is an additional few lines like "Read more at http://www.blawblawblaw.com/some/linky"
Time.com is such a site. For example, copied from the front page:The woman who could be the next President of Haiti — and the first female to be elected to that office — doesn't strike you as an insurgent when she walks into a room.
Read more: http://www.time.com/time/world/article/0,8599,2031412,00.html#ixzz15QHfMbRg
The part I high-lited and copied did not include the "Read more..."
I assume this is done with JavaScript, but I couldn't find the code in the source (it's probably deep in some linked library). I'm thinking of maybe starting with one of those functions that disables copy/paste/context menu, and modding it.
Any idea how this is done?
Time.com is such a site. For example, copied from the front page:The woman who could be the next President of Haiti — and the first female to be elected to that office — doesn't strike you as an insurgent when she walks into a room.
Read more: http://www.time.com/time/world/article/0,8599,2031412,00.html#ixzz15QHfMbRg
The part I high-lited and copied did not include the "Read more..."
I assume this is done with JavaScript, but I couldn't find the code in the source (it's probably deep in some linked library). I'm thinking of maybe starting with one of those functions that disables copy/paste/context menu, and modding it.
Any idea how this is done?