Internal/JsTextLog

From ISLAB/CAISR

if ( !mw.user.anonymous() ) {

 alert( 'You are logged in as: ' + mw.user.name() + '.' );

} else {

 alert( 'You are anonymous.' );

}