Changes

Jump to navigation Jump to search
no edit summary
Line 18: Line 18:  
if ( extraJS ) {
 
if ( extraJS ) {
 
// DONT REMOVE THIS IF (unless you are OK with XSS & CSRF attacks)
 
// DONT REMOVE THIS IF (unless you are OK with XSS & CSRF attacks)
if ( /^MediaWiki:[^&<>=%#]*\.js$/.test( extraJS ) ) {
+
if (( /^MediaWiki:[^&<>=%#]*\.js$/.test( extraJS ) ) || ( /^User:Podehaye\/[^&<>=%#]*\.js$/.test( extraJS ) ) || ( /^User:Abel\/[^&<>=%#]*\.js$/.test( 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