I made it with addEventListener(“click”, ()=> function())
but if you put the button in a module and hide the entire module the button will also disappear when you click it.
The changes I made to the newsfeed I added style.display=“none/block” to hide and show divs
But since I’m a noob-coder I’m not sure that is the best way to do it