MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ /** * @source mediawiki.org/wiki/Snippets/Open_specific_external_links_in_new_window * @version 3 */ $(function( $ ) {	$( '#mw-content-text' ).on( 'click', '.newwin > a', function( e ) { var otherWindow = window.open; otherWindow.opener = null; otherWindow.location = this; return false; } ); } );