Is there a way to prevent websites to clearing console outputs?

Amnesiac@lemmy.world to Firefox@lemmy.ml – 21 points –

I noticed a few websites i use do that when i open the console. I don't know if it may cause performance issues but it looks like abusing something. It happens so fast that screen flickers.

I don't know why browsers allow this and wonder if there is a simple setting to disable that action in somewhere like about:config?

3

You can run console.clear = () => {} in the console to override and disable the clear method.