There are two main ways to add extra info to copied web text. 1. Manipulating the selection The idea is to watch for the copy event, then append a hidden container with our extra info to the dom, and extend the selection to it. This method is adapted from this article by c.bavota. Check also jitbit‘s version for