Manual:$wgAllowUserJs

Description
Enables/disables user Javascript pages. This enables a lot of neat customizations, but may increase security risk to users and server load.

A related setting $wgAllowUserCss allows/disallows users to use their own CSS files.

Usage
To enable users to perform their own JavaSript, set to localsettigs.php a new line:

To disable this function set $wgAllowUserJs false or, delete whole line.