| 51 | } |
| 52 | |
| 53 | function 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 | |
| 72 | function initNotifications(signal: AbortSignal): void { |
| 73 | observe( |