MCPcopy Create free account
hub / github.com/XIU2/UserScript / getAllElementsByCSS

Function getAllElementsByCSS

3dm-Enhanced.user.js:365–367  ·  view source on GitHub ↗
(css, contextNode = document)

Source from the content-addressed store, hash-verified

363 return contextNode.querySelector(css);
364 }
365 function getAllElementsByCSS(css, contextNode = document) {
366 return [].slice.call(contextNode.querySelectorAll(css));
367 }
368 function getElementByXpath(xpath, contextNode, doc = document) {
369 contextNode = contextNode || doc;
370 try {

Callers 1

getAllElementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected