MediaWiki:Gadget-NewImageThumb.js
Z Wiki.Pnikuczanie
Uwaga: aby zobaczyć zmiany po zapisaniu, może zajść potrzeba wyczyszczenia pamięci podręcznej przeglądarki.
- Firefox / Safari: Przytrzymaj Shift podczas klikania Odśwież bieżącą stronę, lub naciśnij klawisze Ctrl+F5 lub Ctrl+R (⌘-R na komputerze Mac)
- Google Chrome: Naciśnij Ctrl-Shift-R (⌘-Shift-R na komputerze Mac)
- Internet Explorer: Przytrzymaj Ctrl jednocześnie klikając Odśwież lub naciśnij klawisze Ctrl+F5
- Opera: Wyczyść pamięć podręczną w Narzędzia → Preferencje
/* _____________________________________________________________________________ * | | * | === 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.wikipedia.org/wiki/MediaWiki:Gadget-NewImageThumb.js * @revision 1 * @author: Edokter ([[User:Edokter]]) */ mw.hook( 'wikipage.content' ).add( function() { $( '.thumbinner' ).each( function() { $( this ).css( 'width', ( parseInt( $( this ).css( 'width' ) ) - 2 ) + 'px' ); } ); } );