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

Function addRepoAvatar

source/features/small-user-avatars.tsx:25–33  ·  view source on GitHub ↗
(link: HTMLAnchorElement)

Source from the content-addressed store, hash-verified

23}
24
25function addRepoAvatar(link: HTMLAnchorElement): void {
26 const [owner] = link.textContent.trim().split('/');
27
28 link.firstElementChild!.prepend(
29 <span className="ActionListItem-visual ActionListItem-visual--leading d-none d-xl-inline-block">
30 {createAvatar(owner, 14)}
31 </span>,
32 );
33}
34
35function addAvatar(link: HTMLElement): void {
36 const username = link.textContent;

Callers

nothing calls this directly

Calls 2

createAvatarFunction · 0.85
prependMethod · 0.80

Tested by

no test coverage detected