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

Function initOnce

source/features/small-user-avatars.tsx:53–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53function initOnce(): void {
54 // Excludes bots
55 observe([
56 '.js-issue-row [data-hovercard-type="user"]', // `isPRList` + old `isIssueList`
57 '.notification-thread-subscription [data-hovercard-type="user"]', // https://github.com/notifications/subscriptions
58 is(
59 '[data-testid="created-at"]',
60 '[data-testid="closed-at"]',
61 ) + ' a[data-hovercard-url*="/users"]', // `isIssueList`
62 ], addAvatar);
63 observe(
64 '.user-mention' + not(
65 '.opened-by > *', // Merge queue
66 '.commit-author',
67 ),
68 addMentionAvatar,
69 );
70}
71
72function initNotifications(signal: AbortSignal): void {
73 observe(

Callers

nothing calls this directly

Calls 3

observeFunction · 0.85
isFunction · 0.85
notFunction · 0.85

Tested by

no test coverage detected