Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function addLink() {
- var body_element = document.getElementsByTagName('body')[0];
- var selection;
- selection = window.getSelection();
- var pagelink = "So we hear you link PLAIGRISM. Well it's wrong people work hard. Find your stolen content below.<br /><br />------BEGIN COPIED WORK--------- <br />"; // change this if you want
- var copytext = pagelink + selection;
- var newdiv = document.createElement('div');
- newdiv.style.position='absolute';
- newdiv.style.left='-99999px';
- body_element.appendChild(newdiv);
- newdiv.innerHTML = copytext;
- selection.selectAllChildren(newdiv);
- window.setTimeout(function() {
- body_element.removeChild(newdiv);
- },0);
- }
- document.oncopy = addLink;
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement