domdomrung

How To Disable Highlight Function

How To Disable Highlight FunctionHow To Disable Highlight Function
To write a very constructive blog content is a very hard work,which some bloggers don't understand what it takes, all they are looking for is where to copy content for their blog,which is really a very bad act,especially when your copied content is ranking higher than your original content.I can remember when i first started blogging,it took me 10-15 mins before i can actually figure out where to start my write-up,but seems to be getting easier as time goes on.

Now the major trick you can use to protect your content from copy and paste bloggers is to disable highlight function.I also shared a tutorial on  How to add an image next to Blogger Post Title,which you can also use it to protect your blog images
  • Go to your dashboard
  • Click Template > Edit HTML > Proceed
  • Use ctrl F to find </head> and paste the following code above </head>
<script type='text/javascript'>
 if (typeof document.onselectstart!=&quot;undefined&quot;) {
 document.onselectstart=new Function (&quot;return false&quot;);
}
 else{
 document.onmousedown=new Function (&quot;return false&quot;);
 document.onmouseup=new Function (&quot;return true&quot;);
}
</script> 

Alternative

You can also add it, using this second option:

  • Go to Layout > Add a Gadget > HTML/JavaScript
  • Paste the following code in the content box leaving the title box empty
<!--Disable Highlighting by  www.mybloggertricks.org-->

<style type='text/css'>

.post{

-webkit-user-select: none; /* Webkit */

-moz-user-select: none; /* Firefox */

-ms-user-select: none; /* IE 10 */

/* Currently not supported in Opera but will be soon */

-o-user-select: none;

user-select: none;

}

code{

-webkit-user-select: text; /* Webkit */

-moz-user-select: text; /* Firefox */

-ms-user-select: text; /* IE 10 */

/* Currently not supported in Opera but will be soon */

-o-user-select: text;

user-select: text;

}

</style>
  • Click on the Save button and you are done.
With this trick, your blog content is now safe from copy and paste bloggers.Take few seconds to share it,if it help's a bit.