User:Fleetflame/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//Twinkle
importScript('User:AzaToth/twinkle.js');

function liveClock()
{
 
	liveClock.node = mw.util.addPortletLink( 'p-personal', mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=' + wgPageName + '&action=purge', '', 'utcdate' );
	liveClock.node.style.fontSize = 'larger';
	liveClock.node.style.fontWeight = 'bolder';
 
	showTime();
}
$(liveClock)
 
function showTime()
{
 
	var dateNode = liveClock.node;
	if( !dateNode ) {
		return;
	}
    var now = new Date();
	var hh = now.getUTCHours();
	var mm = now.getUTCMinutes();
	var ss = now.getUTCSeconds();
	var time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss );
	dateNode.firstChild.replaceChild( document.createTextNode( time ), dateNode.firstChild.firstChild );
 
    window.setTimeout(showTime, 1000);
}



//Lupin's RecentChanges (in toolbox)
importScript('User:Lupin/recent2.js');


//NewPagePatrol live feed box
importScript('User:TheJosh/Scripts/NewPagePatrol.js');


//Advisor
importScript('User:Cameltrader/Advisor.js');

//AutoEd [[Wikipedia:AutoEd]]
importScript('Wikipedia:AutoEd/basic.js');

//quickimgdelete
importScript('User:Howcheng/quickimgdelete.js');

//Prose size finder
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]