ArchivesPUG (talk | contribs) |
ArchivesPUG (talk | contribs) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups'); | mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups'); | ||
window.popupStructure = 'menus'; | window.popupStructure = 'menus'; | ||
+ | window.popupCategoryMembers = 'false'; | ||
+ | |||
+ | /** | ||
+ | * @source https://www.mediawiki.org/wiki/Snippets/Open_specific_links_in_new_window | ||
+ | * @version 2018-09-15 | ||
+ | */ | ||
+ | $( function () { | ||
+ | $( '#mw-content-text' ).on( 'click', '.smw-datatable > a', function () { | ||
+ | var otherWindow = window.open(); | ||
+ | otherWindow.opener = null; | ||
+ | otherWindow.location = this; | ||
+ | return false; | ||
+ | } ); | ||
+ | } ); |
Latest revision as of 13:34, 4 February 2020
// [[Wikipedia:Tools/Navigation popups]]
mw.loader.load('https://en.wikipedia.org/w/load.php?modules=ext.gadget.Navigation_popups');
window.popupStructure = 'menus';
window.popupCategoryMembers = 'false';
/**
* @source https://www.mediawiki.org/wiki/Snippets/Open_specific_links_in_new_window
* @version 2018-09-15
*/
$( function () {
$( '#mw-content-text' ).on( 'click', '.smw-datatable > a', function () {
var otherWindow = window.open();
otherWindow.opener = null;
otherWindow.location = this;
return false;
} );
} );