MediaWiki:Common.js: Difference between revisions
Appearance
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary Tag: Manual revert |
| (3 intermediate revisions by the same user not shown) | |
(No difference)
| |
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');