How to remove hyperlink comments in blogger

How to remove hyperlink comments in blogger. For those who already have a blog, of course, one advantage is that the blog blog owner has many visits. A wide range of resources and efforts undertaken by the blog owner, ranging from the well optimization seo onpage optimization, optimization of title, description optimization, meta optimization, optimization and other optimization hyperlink.
In addition to performing inpage optimization, any business that can be done to improve the visitor is by commenting on other people's blogs or bisajuga sign the guest book on other blogs. By leaving comments on other blogs means that at least we have had the potential visitors who will visit our blog. Who is he? He is the owner of the blog that we visited. There is a possibility after the blog owner saw anyone leaving a comment on any post, the blog owner will see what the content of the comments left, and blog owners will see exactly who has visited, the blog owner will see if he has a blog or website? Oh it turns out to have a blog / website, the blog owner will be curious as to what is actually her blog, so the blog owner will try to open the blog. And what if it turns out the blog where we commented that having thousands of visitors? If a blog comment that we have thousands of visitors, it is possible that hundreds of the end will visit our blog. It is all of our expectations and also the possibilities of it ....
There are many ways in which the people commenting on the blog, one that is often made is to leave the active hyperlink in the comments field. Active hyperlink to the comments in the opinion may adversely affect the seo blog where we commented, we often encounter some blog owners remove comments that include an active hyperlink on their blog.
Well, here mendalo bloggers will try to create a guide for how to remove the active hyperlink to the comments in an automated way.
1. Let's login to blogger
2. Open Template> edit html
3. Find the code </body>
4. add the following code above </body>
<script type='text/javascript'>
//<![CDATA[
function blockLinks(parentID, children) {
var parent = document.getElementById(parentID),
content = parent.getElementsByTagName(children);
for (var i = 0; i < content.length; i++) {
if (content[i].innerHTML.indexOf('</a>') !== -1) {
content[i].innerHTML = "<mark>Unfortunately you have put a hyperlink here</mark> <i><p>Which causes your comment deleted automatically</i>";
content[i].className = "spammer-detected";
}
}
}
blockLinks('comment-holder', 'p');
//]]>
</script>


The result will be like this
How to remove hyperlink comments in blogger

How to remove hyperlink comments in blogger



5. save Tempalate
6. See the results
7. Do not forget to leave a comment below yes ..... :-)

3 comments:

You must already opened this page.
Make sure that you have left a comment before leaving this page