MediaWiki:Gadget-toolbaralert2.js

( function( $, mw ) { $(document).ready(function { //$( '.usermessage' ).hide; var newMsgRevisionId = mw.config.get( 'wgUserNewMsgRevisionId' ); if ( newMsgRevisionId && !mw.config.get( 'echoNewMsgAlertDisplayed' ) ) { $( '#pt-mytalk a' ).append( ':&#160; You have new messages ' ); $( '#pt-mytalk a' ).css( {			//'border': '1px solid darkorange',			'border-radius': '2px',			'background-color': '#F9C557',			'padding': '0.3em 0.9em 0.25em 0.9em',			'color': '#555555',			'font-weight': 'normal'		} ); mw.config.set( 'echoNewMsgAlertDisplayed', true ); } } ); } )( jQuery, mediaWiki );