Manual:$wgAllowUserJs

Details
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.