AddThis Plugin adding html comments in P tags

You put this function there:

$("#main").each(function() {
                var text = $(this).text();
                text = text.replace("<p><!-- AddThis Sharing Buttons above --></p>", "");
                $(this).text(text);
            });

Did it work?

If not, why do you want to do that? You can go to the main plugin and replace this text..