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

Function init

source/features/user-profile-follower-badge.tsx:22–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20});
21
22async function init(): Promise<void> {
23 if (!await doesUserFollow.get(getCleanPathname(), getLoggedInUser()!)) {
24 return;
25 }
26
27 const target = await elementReady('.js-profile-editable-area [href$="?tab=following"]');
28 attachElement(target, {
29 after: () => (
30 <span className="color-fg-muted"> · Follows you</span>
31 ),
32 });
33}
34
35void features.add(import.meta.url, {
36 include: [

Callers

nothing calls this directly

Calls 2

attachElementFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected