Close

How To Automatically Add Source Links

How To Automatically Add Source Links
How To Automatically Add Source Links

How To Automatically Add Source Links - On the Internet it is very easy to copy text from one site and paste it into another site. Technically, if a blog visitor copies text from a particular site he should provide a link to the source of the site for which he or she copies the text. But there are also people who ignore this important thing. How To Automatically Add Source Links To avoid that, here I will provide a code that automatically if someone copies the text section of our article it will automatically bring up the source link of the text he copied. Although this way I think is still less effective because the source link can be removed easily and this tips is an old way that can still be used , but at least will provide a little warning for those who copy the text of our blog articles. Here's How To Automatically Add Source Links. How To Automatically Add Source Links This code works in some favorite browsers (including Microsoft Edge). Go to Blogger page> Click Themes> Click Edit HTML button and add the code below> Then click Save theme.
<script type='text/javascript'>
//<![CDATA[
// Copy Text
function nocopas(){var e=window.getSelection();pagelink=" Read more : "+document.location.href,copytext=e+pagelink,newdiv=document.createElement("div"),newdiv.style.position="absolute",newdiv.style.left="-99999px",document.body.appendChild(newdiv),newdiv.innerHTML=copytext,e.selectAllChildren(newdiv),window.setTimeout(function(){document.body.removeChild(newdiv)},100)}document.addEventListener("copy",nocopas);
//]]>
</script>
Buddy can edit a part of the code I'm marking. For tips this time I hope so, thank you for visiting.