How to use javascript safely?

i thought there would be more topics like this

every big website wants javascript on even this website but its so easy to fingerprint ( what do you do to make it safe??

Disabling JIT and then only allowing it for specific sites you select drastically reduces the risks

Don’t visit websites that do it or only visit them in anti-detect browsers or Mullvad Browser.

How to do that in Edge and Chrome?

can you disable bad javascript parts but keep the functional stuff or just spoof everything

most people have to use malicious sites all time like fb sadly and cant live in the woods off grid

Settings → Privacy and security → Site settings → JavaScript → Select Don't allow sites to use JavaScript

You can now enable it per-site using the address bar (You can do it either on the left or right)

Settings → Privacy and security → Security → Manage JavaScript optimization & security → Select Don't allow sites to use JavaScript optimization

You can also allow it per-site if needed

The most you could realistically do is disable often abused APIs like WebGL/WebGPU, since you can’t really categorize it into “bad” parts

Disabling JIT or javascript makes you more safe for exploits but it makes your fingerprint more unique

Anti-fingerprint choices: Safari / Tor browser