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

Function prepareForAddition

source/features/repo-header-info.tsx:49–53  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

47}
48
49function prepareForAddition(element: HTMLElement): void {
50 if (!element.classList.contains('AppHeader-context-item')) {
51 closestElement('li', element).classList.add('d-flex');
52 }
53}
54
55function markPrivate(repoLink: HTMLElement, isPrivate: boolean): void {
56 // GitHub may already show this icon natively, so we match its position

Callers 3

addStarsFunction · 0.85
markForkedFunction · 0.85
addCiStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected