Alex_Lexon User

For example i want to delete all comments from facebook posts. I did it easily:

while (document.getElementsByClassName("RepliesClassname").length > 0)
    {
       document.getElementsByClassName("RepliesClassname")[0].remove();
    }

But now i have a problem, when i load more posts (Scroll down), its dont delete them


Hello!

Want to write, but I haven`t learned how to work with browser... I want to delete all elements of 1 class on the site. Can somebody help me with it?