Sunday, 16 May 2021

Disable Javascript

If you wonder what Javascript is, it is what makes the pages in your web browser bounce around uncontrollably, loads and plays heavy films and images you never asked for and makes your browsing experience generally frustrating.

Javascript has some utility, but most websites use it more to annoy their users than to actually help them. A few websites require Javascript. 

This blog, for example, sometimes works and sometimes doesn't work at all, if one disables Javascript. Unfortunately, it is not up to me, how this works. It is google's designers who determine whether the content is visible without Javascript. (I might have an option to change it, but then I risk breaking the blog for everyone, with or without the script.)

If you want a soothing browsing experience, you may want to switch off javascript completely. However, as there are such a lot of sites that require javascript, you should make sure you also have a javascript option. You can for example have one browser configured with javascript enabled and another one where it is disabled. If you encounter a site you actually need (but do you really need it, if you really think about it?) you can open it in the browser where javascript is enabled.

Here is how to disable javascript currently (May 2021) in some browsers. It may change in the future.

Firefox for MacOS or Windows:

  1. Click in the address bar (where you usually type URLs).
  2. Type "about:config" (without quotes) and enter.
  3. In the search field, type "javascript.enabled" (without quotes).
  4. Double-click on the value "true." It will turn to "false" and javascript is disabled for all new windows.
Chrome for MacOS or Windows:
  1. Go to Settings > Privacy and Security > Site Settings > Content > Javascript.
  2. Switch off "Allowed."
  3. Optionally add individual sites with exceptions to Block or Allow.
Safari for MacOS:
  1. Go to Settings > Security.
  2. Disable javascript.
Safari for iPhone or iPad:
  1. Go to the device's global Settings app.
  2. Click on Safari > Advanced.
  3. Disable Javascript.
Once you have done this, browsing the web will be a much more peaceful and serene experience. Plenty of sites will not work (like this blog, perhaps), but there are plenty of other sites that you can use instead.

You have taken back control.