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

Function isOnlyChild

source/features/embed-gist-inline.tsx:22–23  ·  view source on GitHub ↗
(link: HTMLAnchorElement)

Source from the content-addressed store, hash-verified

20);
21
22const isOnlyChild = (link: HTMLAnchorElement): boolean =>
23 link.textContent.trim() === link.parentElement!.textContent.trim();
24
25async function embedGist(link: HTMLAnchorElement): Promise<void> {
26 const info = <em> (loading)</em>;

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected