User:PEJL/monobook.js

importScript( "User:Alex_Smotrov/edittop.js" );

importScript( "User:Dschwen/highlightredirects.js" );

importScript( "Wikipedia:WikiProject User scripts/Scripts/Changes since I last edited" );

importScript( "Wikipedia:WikiProject User scripts/Scripts/Add purge to tabs" );

//Adapted from Wikipedia:WikiProject User scripts/Scripts/Time function makeTime { var li = document.createElement( "li" ); li.id = "pt-time"; var mySpan = document.createElement( "span" ); mySpan.appendChild( document.createTextNode( "xx:xx:xx" ) ); li.appendChild( mySpan ); document.getElementById( "pt-logout" ).parentNode.appendChild( li ); getTime; } if( window.addEventListener ) { window.addEventListener( "load", makeTime, false ); } else if( window.attachEvent ) { window.attachEvent( "onload", makeTime ); } function getTime { var time = new Date; var hours = "0" + time.getUTCHours; hours = hours.substr( ( hours.length - 2 ), hours.length); var minutes = "0" + time.getUTCMinutes; minutes = minutes.substr( ( minutes.length - 2 ), minutes.length ); var seconds = "0" + time.getUTCSeconds; seconds = seconds.substr( ( seconds.length - 2 ), seconds.length ); var curTime = hours + ":" + minutes + ":" + seconds; datePlace = document.getElementById( "pt-time" ).childNodes[ 0 ].childNodes[ 0 ]; datePlace.replaceData( 0, datePlace.length, curTime ); doTime = window.setTimeout( "getTime", 1000 ); }