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

Function prefixUserMention

source/features/quick-mention.tsx:37–40  ·  view source on GitHub ↗
(userMention: string)

Source from the content-addressed store, hash-verified

35 = `a[class^="Avatar-module__avatarLink"][class*="avatarOuter"]:not([href$="/${loggedInUser}"])`;
36
37function prefixUserMention(userMention: string): string {
38 // The alt may or may not have it #4859
39 return '@' + userMention.replace('@', '').replace(/\[bot\]$/, '');
40}
41
42function mentionUser({delegateTarget: button}: DelegateEvent): void {
43 const userMention = getCommentAuthor(button.parentElement!);

Callers 2

mentionUserFunction · 0.85
addButtonFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected