I'm trying to hide some fields on sites with javascript. For this, I use the console of the relevant browser and here I make that field display = "none"; with ClassName or ID, but I made a few attempts to improve these things a little more.
In these experiments, I only found a field with <footer> tag, but it has neither ClassName nor ID.
document.getElementsByClassName("footer")[0].style.display = "none";
How can I make it invisible with js code? Thank you very much if you can get back to me. I am trying to learn something new.