Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.
Difference between revisions of "MediaWiki:Gadget-exlinks.js"
From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Jump to navigationJump to search
*>Edokter (Update code per talk) |
m (1 revision) |
(No difference)
|
Latest revision as of 04:39, 14 March 2013
// ********************************************************************** // ** ***WARNING GLOBAL GADGET FILE*** ** // ** changes to this file affect many users. ** // ** please discuss on the talk page before editing ** // ** ** // ********************************************************************** $( function() { var $alinks = mw.util.$content.find( 'a' ); $alinks.each( function() { var $tablink = $( this ); if ( $tablink.hasClass( 'external' ) && $tablink.attr( 'href' ).indexOf( mw.config.get( 'wgServer' ) ) !== 0 ) { $tablink.attr( 'target', '_blank' ); } }); });