Jump to content

MediaWiki:Common.js: Difference between revisions

From pool
Content deleted Content added
Undo revision 17028 by Caleb Cooper (talk)
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 18: Line 18:
} );
} );


/* Script for filtering mediawiki tables */
/* Script for filtering mediawiki tables*/
importScript('MediaWiki:FilterTable.js');
importScript('MediaWiki:FilterTable.js');

Latest revision as of 12:42, 16 April 2024

/* [[Category:AutoDumpContentFromCommons]] */
/* Any JavaScript here will be loaded for all users on every page load. */

/* Mark up pre's with box or pointer */
importScript('MediaWiki:PreMarkup.js');

/**
 * @source https://www.mediawiki.org/wiki/Snippets/Open_specific_links_in_new_window
 * @version 2018-09-15
 */
$( function () {
	$( '#mw-content-text' ).on( 'click', '.newwin > a', function () {
		var otherWindow = window.open();
		otherWindow.opener = null;
		otherWindow.location = this;
		return false;
	} );
} );

/* Script for filtering mediawiki tables*/
importScript('MediaWiki:FilterTable.js');