MediaWiki:Gadget-UserLinkAvatar.js: Difference between revisions

    叶子和他的Vtuber们
    (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()));
    });
    });

    Latest revision as of 11:30, 22 December 2022

    $('.mw-userlink').each(function(_, item) {
    	item = $(item);
    	item.prepend($('<img/>').addClass('userlink-avatar').attr('src', mw.config.get('wgScriptPath') + '/extensions/Avatar/avatar.php?nocache=true&user=' + item.text()));
    });