Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgAllowUserJs and the translation is 38% complete.

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎català • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎русский • ‎中文 • ‎日本語
Front-end: $wgAllowUserJs
Allow user JavaScript pages
Introduzido na versão:1.3.0 (r7357)
Removido na versão:ainda em uso
Valores permitidos:(booleano)
Valor padrão:false
true until 1.3.10 (r7357)
Outras definições: Alfabético | Por função


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.


To enable users to perform their own JavaScript, append the following line to your LocalSettings.php file:

$wgAllowUserJs = true;

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

Nota importante

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 $wgAllowUserCss as well.

Ver também