MediaWiki:Gadget-disambiguationLinks.js

ХӀара гӀирс Википеди чуьра бу — маьрша энциклопеди

Билгалдаккхар: Ӏалашйинчул тӀаьхьа хийцамаш га браузеран кэш цӀанйан йезаш хила мега.

  • Firefox / Safari: Shift тӀетаӀийна йитина, гӀирсийн панелан тӀера тӀетаӀайе Карлайаккха йа Ctrl+F5 йа Ctrl+R (⌘+R Mac тӀехь)
  • Google Chrome: тӀетаӀайе Ctrl+Shift+R (⌘+Shift+R Mac тӀехь)
  • Internet Explorer / Edge: тӀетаӀийна йитина Ctrl, тӀетаӀайе Карлайаккха йа тӀетаӀайе Ctrl+F5
  • Opera: тӀетаӀайе Ctrl+F5.
( function () {
	function extendLinkTitle() {
		if( mw.loader.getState( 'ext.popups' ) !== 'ready' ) {
			var $nodes = $( 'a.mw-disambig' );
			
			$nodes.each( function () {
				var $node = $( this );
				var title = $node.attr( 'title' );
				
				if( title.indexOf( '(маьӀнаш)' ) < 0 ) {
					$node.attr( 'title', [ title, 'маьӀнийн агӀо' ].join( ' — ' ) );
				}
			} );
		}
	}
	
	// In case other projects copypaste the code and forget to implement
	// runAsEarlyAsPossible() in MediaWiki:Common.js, which is too easy a mistake to
	// make to not account for.
	
	if ( typeof runAsEarlyAsPossible === 'undefined' ) {
		$( extendLinkTitle );
	} else {
		runAsEarlyAsPossible( extendLinkTitle );
	}
} )();