MediaWiki:Common.js: Difference between revisions

From Samskrita Vyakaranam
Jump to navigation Jump to search
Content added Content deleted
(/* यहां लिखी गई जावास्क्रीप्ट सभी सदस्योंके लिय... नवीन पृष्ठं निर्मीत अस्ती)
 
mNo edit summary
Line 1: Line 1:
/* यहां लिखी गई जावास्क्रीप्ट सभी सदस्योंके लिये इस्तेमाल में लाई जायेगी। */
/* यहां लिखी गई जावास्क्रीप्ट सभी सदस्योंके लिये इस्तेमाल में लाई जायेगी। */
$wgExternalLinkTarget = '_blank';

$( '#mw-panel, #panel' ) // #panel is for pre-1.17 compatibility
$( '#mw-panel, #panel' ) // #panel is for pre-1.17 compatibility
.find( 'li a' )
.find( 'li a' )

Revision as of 18:45, 2 March 2021

/* यहां लिखी गई जावास्क्रीप्ट सभी सदस्योंके लिये इस्तेमाल में लाई जायेगी। */
$wgExternalLinkTarget = '_blank';

$( '#mw-panel, #panel' ) // #panel is for pre-1.17 compatibility
	.find( 'li a' )
	.filter( "[href^='http://'], [href^='https://']" )
	.attr( 'target' , '_blank' );