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 Reverted |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
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())); | ||
}); | }); |