I fresh installed MediaWiki on my own server (latest version)
I tried adding some JavaScript code to
MediaWiki:Common.jsIn
localsettings.php,$wgAllowUserJsis set to trueI also tried adding the JavaScript to
User:Admin/vector.jsandUser:Admin/common.jsI cleared cache/cookies, used different browsers, JavaScript enabled, tried different computers
The JavaScript code does not work at all. I viewed source and it's not there.
<!-- BEGIN Tynt Script -->
<script type="text/javascript">
if(document.location.protocol=='http:'){
var Tynt=Tynt||[];Tynt.push('cAe5WESDOr4BZUacwqm_6r');Tynt.i={"ap":"Read more:"};
(function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
}
</script>
<!-- END Tynt Script -->
<script>and</script>on the *.js page - it will be included as a separate JS file, not inline in the HTML page. Also, you don't need$wgAllowUserJsfor MediaWiki pages (there is a separate setting for that, but it is on by default).