Weird script in every page's header

Description of the issue:
Hi, today I’ve discovered that there is a script added to every pages I load, it’s placed in the header and is the following

<script data-dapp-detection="">!function(){let e=!1;function n(){if(!e){const n=document.createElement("meta");n.name="dapp-detected",document.head.appendChild(n),e=!0}}if(window.hasOwnProperty("ethereum")){if(window.__disableDappDetectionInsertion=!0,void 0===window.ethereum)return;n()}else{var t=window.ethereum;Object.defineProperty(window,"ethereum",{configurable:!0,enumerable:!1,set:function(e){window.__disableDappDetectionInsertion||n(),t=e},get:function(){if(!window.__disableDappDetectionInsertion){const e=arguments.callee;e&&e.caller&&e.caller.toString&&-1!==e.caller.toString().indexOf("getOwnPropertyNames")||n()}return t}})}}();</script>

**Steps to Reproduce (add as many as necessary): **
To be honest I have no idea, I made a clean new install of linux Ubuntu arround 3 days ago, installed Brave with only 2 Extensions: Bitwarden and Stylus and that’s has much has I can give.

I’ve also tried using VPN if it was some sort of MiM attack or something.

I couldn’t find any reference to this online except one post mentioning it without anybody paying attention to it.

1 Like

Hello @james420

try to disable stylus and see if it still show up or not and have a nice day :slight_smile:

1 Like

Hi, I’ve tried to disable both extensions by nothing change. If it’s not from Brave could it be a JS miner or something, this seams very short for such a script tho.

check those
go to brave://settings/extensions

set this Ethereum provider for using Dapps to none
disable this Load Crypto Wallets on startup

maybe it related to the crypt wallet

hope that help and have a nice day :slight_smile:

1 Like

yes that’s it thank you

1 Like

you very welcome @james420

1 Like

This topic was automatically closed after 14 hours. New replies are no longer allowed.