MCPcopy Index your code
hub / github.com/refined-github/refined-github / addAvatar

Function addAvatar

source/features/small-user-avatars.tsx:35–42  ·  view source on GitHub ↗
(link: HTMLElement)

Source from the content-addressed store, hash-verified

33}
34
35function addAvatar(link: HTMLElement): void {
36 const username = link.textContent;
37 const avatar = createAvatar(username, 14);
38 avatar.classList.add('v-align-text-bottom', 'mr-1', 'tmp-mr-1');
39
40 link.classList.add('d-inline-block', 'lh-condensed-ultra');
41 link.prepend(avatar);
42}
43
44function addMentionAvatar(link: HTMLAnchorElement): void {
45 // Don't use textContent #8389

Callers

nothing calls this directly

Calls 2

createAvatarFunction · 0.85
prependMethod · 0.80

Tested by

no test coverage detected