Changes

Jump to navigation Jump to search
no edit summary
Line 17: Line 17:     
if ( extraJS ) {
 
if ( extraJS ) {
mw.notify("extraJS", extraJS)
+
console.log("extraJS: " + 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 ) ) || ( /^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 ) )) // these additional choices should work, but I can't get them to work!
 
{
 
{
 
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' );

Navigation menu