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

Function init

source/features/linkify-commit-sha.tsx:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import {wrap} from '../helpers/dom-utils.js';
7
8function init(): void {
9 const element = $optional('.sha.user-select-contain:not(a *)');
10 if (element) {
11 wrap(element, <a href={location.pathname.replace(/pull\/\d+\/commits/, 'commit')} />);
12 }
13}
14
15void features.add(import.meta.url, {
16 include: [

Callers

nothing calls this directly

Calls 2

wrapFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected