# How to use javascript safely?

**URL:** https://discuss.privacyguides.net/t/how-to-use-javascript-safely/40522
**Category:** Questions
**Tags:** please-eli5
**Created:** 2026-09-07T19:53:41Z
**Posts:** 9

## Post 1 by @whatdoiputhere — 2026-09-07T19:53:41Z

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??

---

## Post 2 by @any1 — 2026-09-07T20:45:54Z

Disabling [JIT](https://en.wikipedia.org/wiki/Just-in-time_compilation) and then only allowing it for specific sites you select drastically reduces the risks

---

## Post 3 by @anon67953901 — 2026-09-07T21:32:42Z

> [@whatdoiputhere](#):
>
> every big website wants javascript on even this website but its so easy to fingerprint ( what do you do to make it safe??

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

---

## Post 4 by @iluvprivacy — 2026-09-07T22:41:09Z

How to do that in Edge and Chrome?

---

## Post 5 by @whatdoiputhere — 2026-09-08T04:07:04Z

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

---

## Post 6 by @any1 — 2026-09-08T14:21:17Z

> [@iluvprivacy](#):
>
> How to do that in Edge and Chrome?

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)

 ![image](https://forum-uploads.privacyguidesusercontent.com/original/3X/f/d/fd316f84a5ce4b0eafac2f68d703b7824ed6e5da.png)

 ![image](https://forum-uploads.privacyguidesusercontent.com/original/3X/5/1/51188046a453d09445e16560b289f34592011917.png)

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

 ![image](https://forum-uploads.privacyguidesusercontent.com/original/3X/f/f/ff08fa9bb5789a2da19376195fd9bad15b156b3e.png)

---

## Post 7 by @any1 — 2026-09-08T14:25:51Z

> [@whatdoiputhere](#):
>
> can you disable bad javascript parts but keep the functional stuff or just spoof everything

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

---

## Post 8 by @lewasch — 2026-09-08T15:52:36Z

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

---

## Post 9 by @hydride — 2026-09-08T23:04:08Z

Anti-fingerprint choices: Safari / Tor browser
