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

Function init

source/features/rgh-linkify-features.tsx:81–96  ·  view source on GitHub ↗
(signal: AbortSignal)

Source from the content-addressed store, hash-verified

79}
80
81function init(signal: AbortSignal): void {
82 observe(
83 [
84 '.js-issue-title code', // `isPRConversation`, Old view `isIssue`
85 'h1[class^="prc-PageHeader-Title"] code', // `isPRFiles`,
86 '[data-testid="issue-title"] code', // `isIssue`
87 '.js-comment-body code', // Old view `hasComments`
88 '.markdown-body code', // `hasComments`, `isReleasesOrTags`
89 '[class^="CommitHeader-module__commitMessageContainer"] code', // `isSingleCommit`,
90 `${is(commitTitleInLists)} code`, // `isCommitList`, `isCompare`
91 '.react-directory-commit-message code', // `isRepoTree`
92 ],
93 linkifyFeature,
94 {signal},
95 );
96}
97
98void features.add(import.meta.url, {
99 asLongAs: [

Callers

nothing calls this directly

Calls 2

observeFunction · 0.85
isFunction · 0.85

Tested by

no test coverage detected