I am concerned about privacy when using Brave

I noticed that a javascript code was injected on the pages I visited. It contained a naming like “window.ethereum”. How safe is the Brave browser?

The Brave browser is open source, therefore it allows you to decide if it is safe or not (by seeing its code)

Could you add a screenshot and the code itself?