User:Dinoguy1000/newmessageshistory.js

/***** New messages history ****************************************

Copied from wikipedia:User:Davidgothberg/newmessageshistory.js

Adds a "history" link to the "You have new messages" box.

See full documentation at wikipedia:User:Davidgothberg/newmessageshistory.

addOnloadHook( function {

var messtag = document.getElementById( "mw-youhavenewmessages" ); if ( messtag ) { var link = document.createElement( "a" ); link.appendChild( document.createTextNode( "history" ) ); link.href = wgScript + "?title=User_talk:" + wgUserName + "&action=history"; messtag.insertBefore( document.createTextNode( ", " ), messtag.lastChild ); messtag.insertBefore( link, messtag.lastChild ); } } ); /* End New messages history */