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

Function isXPath

Pagetual/pagetual.user.js:4575–4580  ·  view source on GitHub ↗
(xpath)

Source from the content-addressed store, hash-verified

4573 }
4574
4575 function isXPath(xpath) {
4576 if (!xpath) {
4577 return false;
4578 }
4579 return /^\(*(descendant::|\.\/|\/|id\()/.test(xpath);
4580 }
4581
4582 function getAllElements(sel, doc, contextNode) {
4583 try {

Callers 3

getAllElementsFunction · 0.70
getElementFunction · 0.70
startMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected