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?

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

while (document.getElementsByClassName("RepliesClassname").length > 0)

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