February 8, 2017
JavaScript:复制的内容自动添加版权信息 How to automatically append text to text copied with JavaScript
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