MediaWiki:Gadget-NewImageThumb.js
Appearance
![]() | This page is loaded as a part of the NewImageThumb gadget, used by 6,680 users. |
/* _____________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
* |_____________________________________________________________________________|
*
* New image thumb design
*
* @dependencies none
* @source en.wiki.x.io/wiki/MediaWiki:Gadget-NewImageThumb.js
* @revision 1
* @maintainer: Community
*/
mw.hook( 'wikipage.content' ).add( function( $content ) {
$content.find( '.thumbinner' ).not( '.mp-thumb' ).each( function() {
$( this ).css( 'width', ( parseInt( $( this ).css( 'width' ) ) - 2 ) + 'px' );
} );
} );