Gadget:avatar.js:修订间差异

添加24字节 、​ 2023年7月23日 (星期日)
// Edit via Wikiplus
(// Edit via Wikiplus)
(// Edit via Wikiplus)
}
}
 
$( '.mw-userlink' ).each( function ( _, item ) {
mw.hook( 'wikipage.content' ).add( function () {
item.prepend(
$( '.mw-userlink' ).each( function ( _, item ) {
$( '<img>' )
item.prepend(
.addClass( 'userlink-avatar' )
.attr$( '<img>' )
.addClass( 'srcuserlink-avatar', )
.attr( 'src', `${mw.config.get( 'wgScriptPath' )}/index.php?title=Special:Avatar&wpUsername=${item.text()}` )[ 0 +]
);
'/index.php?title=Special:Avatar&wpUsername=' +
} );
item.text
)[ 0 ]
);
} );
} );
维护员、​界面管理员、​巡查员、​监督员、​小部件编辑者
3,462

个编辑