Changes

Jump to navigation Jump to search
no edit summary
Line 17: Line 17:     
if ( extraJS ) {
 
if ( extraJS ) {
console.log("extraJS")
+
console.log("withJS", 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 ) )) // these additional choices should work, but I can't get them to work!
 
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!
Line 30: Line 30:  
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
   −
mw.notify( 'Runnin common.js!' );
+
// mw.notify( 'Runnin common.js!' );
 
// mw.notify( $('<a href="/wiki/Help:Contributing">Know basic Javascript or PHP?</a>' ) );
 
// mw.notify( $('<a href="/wiki/Help:Contributing">Know basic Javascript or PHP?</a>' ) );
 
// mw.notify( $('<a href="/wiki/Help:data_input">Got ecosystem data?</a>' ) );
 
// mw.notify( $('<a href="/wiki/Help:data_input">Got ecosystem data?</a>' ) );

Navigation menu