In this post we going to show you, how to show copyright when someone hack your article. This mean by when someone copy paste your blog article, then it will automatically show copyright and link source of that article. So you can prevent those who are copying your article. Some idiots are simply copy paste on their blog even they are not reading article, also hacker will be irritating to copy paste your blog article. This trick work only on blogger.
How To Add This Trick To Your Blog
1. Log in to your blogger dashboard by clicking here.
2. Go to Design > Edit HTML.
3. Copy the below code and paste before </head>.
3. Copy the below code and paste before </head>.
<script type='text/javascript'>
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/><br/> Original from: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright ©jadeerhassankk- All Rights Reserved"; // change this if you want
var copytext = selection + pagelink;
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>
You can change Copyright ©jadeerhassankk- All Rights Reserved with your words and Save itvar 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>
Share and Enjoy!
0 comments:
Post a Comment