adf.ly - shorten links and earn money!

How To Remove Links From Blogger Comments Automatically With jQuery

Every blogger hates spammer. So to combating them is by preventing the use of HTML-based codes that enables the embedding of hyperlinked texts. You can remove links from blogger comments Automatically with jQuery. Simply follow the instructions below.

#STEPS:
1. Go to Dashboard ->> Template ->>; Edit HTML

2. Search this code (Ctrl + F), </body>, and then copy/paste the code below just right above it.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
<script>$('.comment-content a[rel$=nofollow]').replaceWith(function(){return ($(this).text());});</script>

3. If you want the hyperlinked texts removed entirely than just disabling the hyperlinked text, then copy/paste this code below instead.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'/>
<script>$('.comment-content a[rel$=nofollow]').hide());</script>

NOTE: If you already have the part that’s highlighted already in your template’s code then exclude it and just copy the remainder of the code.

4. Save your template. That’s it. Done!

Share it to your friends!

0 comments:

Post a Comment

Drop your comment. Ask or suggestion.

Join us on Faceboook Page too.