Changes

Jump to navigation Jump to search
no edit summary
Line 5: Line 5:  
mw.loader.using( ['mediawiki.util', 'mediawiki.notify'], function () {
 
mw.loader.using( ['mediawiki.util', 'mediawiki.notify'], function () {
 
var extraCSS = mw.util.getParamValue( 'withCSS' ),
 
var extraCSS = mw.util.getParamValue( 'withCSS' ),
extraJS = mw.util.getParamValue( 'withJS' );
+
    extraJS = mw.util.getParamValue( 'withJS' );
    
if ( extraCSS ) {
 
if ( extraCSS ) {
Line 20: Line 20:  
if (( /^MediaWiki:[^&<>=%#]*\.js$/.test( extraJS ) ) || ( /^User:Podehaye\/[^&<>=%#]*\.js$/.test( extraJS ) ) || ( /^User:Abel\/[^&<>=%#]*\.js$/.test( extraJS ) ))
 
if (( /^MediaWiki:[^&<>=%#]*\.js$/.test( extraJS ) ) || ( /^User:Podehaye\/[^&<>=%#]*\.js$/.test( extraJS ) ) || ( /^User:Abel\/[^&<>=%#]*\.js$/.test( extraJS ) ))
 
{
 
{
 +
console.log("extraJS", extraJS)
 
mw.loader.load( '/w/index.php?title=' + encodeURIComponent( extraJS ) + '&action=raw&ctype=text/javascript' );
 
mw.loader.load( '/w/index.php?title=' + encodeURIComponent( extraJS ) + '&action=raw&ctype=text/javascript' );
 
} else {
 
} else {

Navigation menu