Manual:$wgAllowUserJs/zh

描述
启用/禁用. This enables a lot of neat customizations, but may increase security risk to users and server load.

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

用法
To enable users to perform their own JavaScript, append the following line to your file:

To disable this function set  false or delete whole line.

重要提醒
Microsoft Internet Explorer and Mozilla/Firefox allow the embedding of JavaScript into stylesheets using HTC or XBL. So in order to prevent users from defining JavaScript, you need to disable  as well.

参见

 * 手册:自定义编辑按钮