User:ToprakM/common.js

//UTC LIVE CLOCK BAŞLANGIÇ

/** * Warning! Global gadget file! * * Usage: * *    mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-UTCLiveClock.js&action=raw&ctype=text/javascript'); * */ /*global mw, $, UTCLiveClockConfig:true */ mw.loader.using(['mediawiki.util', 'mediawiki.api']).then( function { var $target;

function showTime( $target ) { 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 ); $target.text( time );

var ms = now.getUTCMilliseconds;

setTimeout( function {		showTime( $target );	}, 1100 - ms ); }

function liveClock { mw.util.addCSS( '#utcdate a { font-weight:bolder; font-size:120%; }' );

if ( !window.UTCLiveClockConfig ) { UTCLiveClockConfig = {}; }	var portletId = UTCLiveClockConfig.portletId || 'p-personal'; var nextNode = UTCLiveClockConfig.nextNodeId ? document.getElementById( UTCLiveClockConfig.nextNodeId ) : undefined; var node = mw.util.addPortletLink(		portletId,		mw.util.getUrl( null, { action: 'purge' } ),		'',		'utcdate',		null,		null,		nextNode	); if ( !node ) { return; }	$( node ).on( 'click', function ( e ) {		new mw.Api.post( { action: 'purge', titles: mw.config.get( 'wgPageName' ) } ).then( function { location.reload; }, function { mw.notify( 'Purge failed', { type: 'error' } ); } );		e.preventDefault;	} );

showTime( $( node ).find( 'a:first' ) ); }

$( liveClock ); } );

//UTC LIVE CLOCK SON // XTools-ArticleInfo BAŞLANGIÇ mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript'); // XTools-ArticleInfo SON // Pratik Menü (MoreMenu) BAŞLANGIÇ mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js'); // Pratik Menü (MoreMenu) SON

// wikipedia:d:User:Yair rand/WikidataInfo.js article's title displaying the label, description, aliases and the identifier of the related Wikidata item mw.loader.load( '//www.wikidata.org/w/index.php?title=User:Yair_rand/WikidataInfo.js&action=raw&ctype=text/javascript' );

// Vikiveri'den arama sonuçları // if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' || ( mw.config.get( 'wgArticleId' ) === 0 && mw.config.get( 'wgCanonicalSpecialPageName' ) === false ) ) { mw.loader.load("//en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript"); }

//TwinkleGlobal - Sevmedim //mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal.js&action=raw&ctype=text/javascript');