How to Add Automatically Source Links | Droidnur123

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

 Welcome To Droidnur123 today we will know about "How to Add Automatically Source Links" on your blogs.


 

How to Add Automatically Source Links | Droidnur123

On the Internet, it is very easy to copy text from one website site and paste it into another. Technically, if a blog visitor copies text from a particular site he should have to provide a link to the source of the site he copied the text from. But there are also some people who ignore this important point.


That's why To avoid that, here I will provide a code that automatically if someone copies a part of the text from our article it will automatically bring up the source link of the text he copied.


Although this method in my opinion is still not effective because the source link can be removed easily and these tips are an old method that can still be used, but at least it 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 Link perfectly?


Don't Worry This code works in several favorite browsers (including Microsoft Edge). For That Open the Blogger page > Next Click Themes > Click the Edit HTML button next to customize and add the code below <body > After that click Save theme.

V 1.0

<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>


You can edit the part of the code that I marked liked  "Read More:"


V 2.0

<script type='text/javascript'>
//<![CDATA[
!function(e,t){var n="getSelection",o="removeAllRanges",i="addRange",l="parentNode",a="firstChild",d="appendChild",r="removeChild",s="test",c="innerHTML";if(e[n]){var p,g,f,h,u,y;t.addEventListener("copy",function(C){for(g=C.target;3===g.nodeType;)g=g[l];if(h=t.createElement("div"),(p=e[n]())&&p.rangeCount&&(p=p.getRangeAt(0))&&(f=p.cloneRange(),p=p.cloneContents())){for(;u=p[a];)h[d](u);if(!/^(pre|code)$/i[s](g.nodeName||"")&&!/(^|\s)no-attribution(\s|$)/i[s](g.className||"")){var v=e.location.href;h[c]+="<br><br>&copy; "+t.title+'<br>Source: <a href="'+v+'">'+v+"</a>"}y=t.createRange(),t.body[d](h),y.selectNodeContents(h),p=e[n](),p[o](),p[i](y),setTimeout(function(){h[l][r](h),p[o](),p[i](f)})}},!1)}}(window,document);
//]]>
</script>

Thank you for visiting. 


Go to Link

About the Author

Droidnur is the Founder & CEO of droidnur.eu.org & Publisher with an Entrepreneur. He is Also a Collage Student & Full Time Passionate Blogger.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.