Schnee (schnee) wrote,

Advanced Javascript settings in Firefox 23+

Firefox 23 and up did away with the option for disabling Javascript — the user-visible one in the Preferences UI, that is, not the option as such (which is still accessible from about:config — look for javascript.enabled).

Unfortunately, in that it also did away with the finer-grained controls for what Javascript is and isn't allowed to do. As a result, Javascript is now allowed by default to move/resize windows, and (worse, IMO) replace/disable context menus.

If you don't want this, you can change some options in about:config again. In order to disable moving/resizing of windows, set dom.disable_window_move_resize to false; in order to disable meddling with context menus, set dom.event.contextmenu.enabled to false. There's other options in the same neighbor­hood that you can also fiddle with, but keep in mind that there be dragons there and that you should probably not tinker with options unless you understand what they will do.

Alternatively, there's an extension, SettingSanity, that will add back the missing options.

Tags: firefox, javascript, software, useful stuff
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded