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

Function removeTextNodeContaining

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

Source from the content-addressed store, hash-verified

102};
103
104export const removeTextNodeContaining = (node: Text | ChildNode, expectation: RegExp | string): void => {
105 assertNodeContent(node, expectation);
106 node.remove();
107};
108
109export function removeTextInTextNode(node: Text | ChildNode, text: RegExp | string): void {
110 assertNodeContent(node, text);

Callers 3

dropExtraCopyFunction · 0.85
cleanReviewersFunction · 0.85
cleanSidebarLegacyFunction · 0.85

Calls 2

assertNodeContentFunction · 0.85
removeMethod · 0.80

Tested by

no test coverage detected