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

Function removeTextInTextNode

source/helpers/dom-utils.ts:109–112  ·  view source on GitHub ↗
(node: Text | ChildNode, text: RegExp | string)

Source from the content-addressed store, hash-verified

107};
108
109export function removeTextInTextNode(node: Text | ChildNode, text: RegExp | string): void {
110 assertNodeContent(node, text);
111 node.textContent = node.textContent.replace(text, '');
112}
113
114export function getElementByAriaLabelledBy<T extends HTMLElement>(baseSelector: string, label: string): T {
115 for (const element of $$(baseSelector + '[aria-labelledby]')) {

Callers 1

renderLabelInCommitTitleFunction · 0.85

Calls 2

assertNodeContentFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected