MCPcopy Index your code
hub / github.com/hoothin/UserScripts / compareNodeName

Function compareNodeName

Pagetual/pagetual.user.js:4630–4641  ·  view source on GitHub ↗
(node, names)

Source from the content-addressed store, hash-verified

4628 }
4629
4630 function compareNodeName(node, names) {
4631 if (!node || !node.nodeName || !node.nodeName.toLowerCase) {
4632 return false;
4633 }
4634 let nodeName = node.nodeName.toLowerCase();
4635 for (let i = 0; i < names.length; i++) {
4636 if (names[i] === nodeName) {
4637 return true;
4638 }
4639 }
4640 return false;
4641 }
4642
4643 function geneSelector(ele, addID, exact) {
4644 let selector = ele.nodeName.toLowerCase();

Callers 15

geneSelectorFunction · 0.85
createXPathFromElementFunction · 0.85
checkTargetChildrenMethod · 0.85
checkElementMethod · 0.85
getPageElementMethod · 0.85
setPageElementCssMethod · 0.85
getPageMethod · 0.85
verifyNextMethod · 0.85
getNextLinkMethod · 0.85
filterElesMethod · 0.85
getInsertMethod · 0.85
openInNewTabMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected