MediaWiki:Common.js: Difference between revisions
Appearance
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 2: | Line 2: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ |
/* 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'); |
|||
/** |
/** |
||
Revision as of 10:38, 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');