JavaScript is one of the key elements most websites and web apps run on, but it’s also one of the most easily exploited. Not only is it used in analytic tools, ads, and browsing trackers, hackers often use JavaScript to deploy malware, it makes you easily trackable in some circumstances, and it can even accidentally leak important data.
In fact, a recent study found that popular websites running JavaScript have leaked over a million user emails to advertisers and other analytics companies in 2020 alone. The list of sites includes The Washington Post, Mailchimp, Wish, and even the recently launched video streaming service Quibi. Worse, many of these websites were doing so unwittingly and even undermined other security measures they had in place that should have kept user data safe.
Should you just disable JavaScript in your browser?
You might not have to. Some browsers and privacy add-ons will outright block JavaScipt from running by default, while most other modern browsers include options to limit or prevent JavaScript at the user’s request.
While disabling all JavaScript entirely would theoretically prevent the data leaks and potential malware attacks that rely on JavaScript, it will also make many websites harder to use, or even prevent them from loading entirely—like Google Maps, for example.
Luckily, there’s a middle-way approach here, which is to manually allow JavaScript to run only on certain websites and block JavaScript from running when you’re unsure.
How to change your browser’s JavaScript settings
Not all browsers include the same JavaScript settings, so the exact options available to you will differ based on what you’re using.
Some privacy-focused browsers, like Brave, will ask you if you want to run JavaScript when loading a new page, while Tor blocks all JavaScript by default, no exceptions.
For most other browsers, however, you’ll need to change the JavaScript settings manually.
Chrome
Open the URL chrome://settings/content/javascript
Deselect the “Allowed” toggle to block all JavaScript.
You can add websites to the Block/Allow lists to create exceptions to your current settings.
Exit and restart Chrome.
Edge
Go to edge://settings/content/javascript using the URL bar
Disable the “Allowed” toggle to block all Javascript
You can then add specific websites to the Block/Allow lists to create exceptions to your current settings.
You’ll need to restart Edge for the settings to take effect.
Firefox
In Firefox, go to about:config
If you get a warning message saying this may void your warranty, ignore it and click “I accept the risk” to continue.
Use the search bar to find javascript.enabled
Double click javascript.enabled so it’s listed as “disabled” to turn off all JavaScript.
Relaunch Firefox.
If you don’t want to disable JavaScript entirely, you can use a Firefox add-on like Disable JavaScript to allow/block specific websites when they load.
Opera
Use the URl bar to open opera://settings/content/javascript
Toggle “Allow” off to disable JavaScript for all websites.
Websites can be added to the Block/Allow lists to create exceptions to your current settings.
Close and relaunch Opera for the changes to take effect.
Safari
Open Safari
Go to Preferences > Security
Uncheck “Enable JavaScript.”
Close the menu then relaunch Safari.
Vivaldi
Vivaldi doesn’t have a dedicated JavaScript setting, and it only allows you to block JavaScript on a per-page basis.
Click the padlock “site info” icon on the left side of the URL bar, then click “Site Settings.”
Scroll down until you find the “JavaScript” option, then select “Block” from the drop-down menu to the right. Repeat as necessary for every site where you want to block JavaScript.
Interviewing for a new job or a promotion can be unnerving. You’re trying to get to understand the company while ...
Finding a good babysitter can be stressful enough, but then on top of that you have to figure out how ...
It’s time to roll up the shirt-sleeves and dive back into my favorite topic: wireless networking. I realize we beat ...
One of the prevailing themes of the last decade has been the rise of social and political polarization. From the ...
Apple Fitness+ launches today, and if you have an Apple Watch Series 3 or newer, you can try it out. ...
I confess, I’m so fatigued by all things quarantine, I’ve let my guard down. I find myself not caring very ...
Though a lot of us have been living in various bottoms with elastic waistbands for the past seven months, there ...
With over 350 million players, Fortnite is one of the biggest franchises in gaming, and it owes much of that ...
If you’re new to exercising, or if you just feel a little awkward about working it into your day, it ...
Everyone overthinks a decision or situation from time-to-time, but for some it becomes an obsession and gets in the way ...
Sure, having a dog comes with countless mental and physical health benefits—not to mention companionship at a time when people ...
Do you remember those idyllic days, back in March or so, when we all realised we’d have a lot more ...
Being stuck at home has inspired many of us to try our hands at baking. As a result, there are ...
Two COVID vaccines are now available in the US, and are currently being administered to healthcare workers and residents of ...
When you’re going grocery shopping this time of year, it makes sense to want to get in and out as ...
Categorizing things can hel us humans process them, and personality traits are no exception. We tend to think of these ...
Whether you’re lazy or in a panicked state because you need to make an Amazon return and you (or someone ...
One of the struggles of working from home—something many more of us are doing for the first time—is a constant ...