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

Function wrapButtons

source/features/default-branch-button.tsx:36–42  ·  view source on GitHub ↗
(buttons: HTMLElement[])

Source from the content-addressed store, hash-verified

34}
35
36function wrapButtons(buttons: HTMLElement[]): void {
37 groupButtons(buttons, 'd-flex', 'rgh-default-branch-button-group');
38
39 // `rounded-left-0` is for Firefox
40 // https://github.com/refined-github/refined-github/pull/8030
41 buttons.at(-1)!.classList.add('rounded-left-0');
42}
43
44async function add(branchSelectorElement: HTMLElement): Promise<void> {
45 // Apply here instead of `excludes` due to React loading:

Callers 1

addFunction · 0.85

Calls 1

groupButtonsFunction · 0.85

Tested by

no test coverage detected