<script type="text/javascript">function addLink(){
var body_element = document.getElementsByTagName('body'),
selection;
selection = window.getSelection();
var pagelink = '<br><br> منبع نوشته: <a href="'+document.location.href+'">'+document.location.href+'</a><br>کپی کردن بدون ذکر منبع باعث کاهش رتبه وب شما در گوگل میشود',
copytext = selection + pagelink,
newdiv = document.createElement('div');
newdiv.style.position = 'absolute';
newdiv.style.left = '-99999px';
body_element[0].appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function(){
body_element[0].removeChild(newdiv);
},10);
}
document.oncopy = addLink;
</script>