MediaWiki:Gadget-UserLinkAvatar.js: Difference between revisions
(Replaced content with "$('.mw-userlink').each(function(_, item) { item = $(item); item.prepend($('<img/>').addClass('userlink-avatar').attr('src', mw.config.get('wgScriptPath') + '/extensions/Avatar/avatar.php?user=' + item.text())); });") Tags: Replaced Manual revert |
No edit summary |
||
Line 1: | Line 1: | ||
$('.mw-userlink').each(function(_, item) { | $('.mw-userlink').each(function(_, item) { | ||
item = $(item); | item = $(item); | ||
item.prepend($('<img/>').addClass('userlink-avatar').attr('src', mw.config.get('wgScriptPath') + '/extensions/Avatar/avatar.php?user=' + item.text())); | item.prepend($('<img/>').addClass('userlink-avatar').attr('src', mw.config.get('wgScriptPath') + '/extensions/Avatar/avatar.php?nocache=true&user=' + item.text())); | ||
}); | }); |