Due to some circumstances, this blog is now up for sale, for more enquires contact: Plushista@gmail.com
RealcomBiz
Pin It

How To Hide Links In Blogger Comments Using jQuery

by Unknown | Wednesday, February 20, 2013 | | 9 Comments

It is always advisable to change blog comment attribute to nofollow or remove comments links completely in other to save your blog from panda effect. If you have been dealing with all sort of spam comments and you are so busy to review all comments, then this new blogger hack will help you with that by removing any link included in comments and replace it with ordinary text using jQuery.



How To Remove Links In Comments

  • Go to your dashboard
  • Click on Template > Edit HTML > Proceed (Mark/Tick Expand Widget Template)
  • Use ctrl F to find </body> and paste the following code above/before it.

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>

If you have been using jQuery library in your blog, then skip the above step and move to the next step.
  • Now paste the following code above </body>

<script>
$('.comment-content a[rel$=nofollow]').replaceWith(function(){return ($(this).text());});
</script>

The code above works for blogger threaded comment, in case you are using the old blogger comment, then use the code below.

<script>
$('.comment-body p a[rel$=nofollow]').replaceWith(function(){return ($(this).text());});
</script>

Hope you found this useful? take few seconds to share it with friends/followers you think this might be of interest to.



Go Social:

Subscribe For Free Updates!

*Please confirm the email sent to your inbox after clicking "Sign Up!".

9 comments : Post Yours! Read Comment Policy ▼
PLEASE NOTE:
We have Zero Tolerance to Spam. Chessy Comments and Comments with Links will be deleted immediately upon our review.

  1. Thanks for sharing the information.It is definitely going to help me some time.

    Hide Comments

    ReplyDelete
    Replies
    1. You are welcome Paul, glad that you find it useful :)

      Delete
  2. Nice Tip.. Really Helped My site http://www.nairotech.blogspot.com from heavy spam comments..Ridwan, you are a saviour. Keep It Up Man!

    ReplyDelete
    Replies
    1. You are always welcome Harold. Glad that you find it useful for your blog.

      Delete
  3. thanks for sharing infomation..

    testing

    ReplyDelete
  4. SEO Services Hyderabad
    This is really interesting, You’re a very skilled blogger. I have joined your feed and stay up for in the hunt for extra of your fantastic post. Also, I have shared your website in my social networks.

    ReplyDelete
  5. Hi! I am Munna Singh before some days I was very worry with our skin surgery with any one I heard about Skin Specialist in Delhi in Klinikesthetika clinic. Then I used this service and I got a best treatment for skin. Now I am very happy to use this service.

    ReplyDelete
  6. I have seen your info on seo service . That you provided is very useful for any interested on this post. I am very much satisfied with your info. I am very glad to say thanks for this info.
    Thank you very much sir.
    seo services Hyderabad

    ReplyDelete
  7. Thank you for sharing the tips! It works for me.
    le lenny face

    ReplyDelete

Recent Posts

Let's Connect

Site Links

Copyright © 2014 RealcomBiz. All Rights Reserved.
Powered by Blogger