“MediaWiki:Gadget-site-shared.js”的版本间差异

无编辑摘要
*/
if (matchMedia( 'screen and (hover: none)' ).matches) {
mw.hook( 'wikipage.content' ).add(function($content =>) {
console.log('Hook: wikipage.content, 开始移除gallery的hover效果');
$content.find( '.mw-gallery-packed-hover ' ).toggleClass( 'mw-gallery-packed-hover mw-gallery-packed' );
16,874

个编辑