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

Function init

source/features/releases-tab.tsx:107–113  ·  view source on GitHub ↗
(signal: AbortSignal)

Source from the content-addressed store, hash-verified

105}
106
107async function init(signal: AbortSignal): Promise<void> {
108 observe(repoUnderlineNavUl, addReleasesTab, {signal});
109 observe(repoUnderlineNavDropdownUl, addReleasesDropdownItem, {signal});
110 observe(['[data-menu-item="i0code-tab"] a', 'a#code-tab'], detachHighlightFromCodeTab, {signal});
111 // Workaround for https://github.com/refined-github/refined-github/issues/8867
112 registerHotkey('g r', buildRepoUrl('releases'), {signal});
113}
114
115void features.add(import.meta.url, {
116 shortcuts: {

Callers

nothing calls this directly

Calls 3

observeFunction · 0.85
registerHotkeyFunction · 0.85
buildRepoUrlFunction · 0.85

Tested by

no test coverage detected