Imagine this: I know that an element with id="cats"
will be created sometime, but I don't know when.
I can remove an element that already exists like this:
document.getElementById('cats').style.display = 'none';
But is there any way to block that element before it even exists, so it can never be created? Or detect and delete it immediately after it has been created? (pure JavaScript answers have advantage)
Important note: I can't edit CSS