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

Function getAllElementsByCSS

V2ex-Enhanced.user.js:551–553  ·  view source on GitHub ↗
(css, contextNode = document)

Source from the content-addressed store, hash-verified

549 return contextNode.querySelector(css);
550 }
551 function getAllElementsByCSS(css, contextNode = document) {
552 return [].slice.call(contextNode.querySelectorAll(css));
553 }
554 function getElementByXpath(xpath, contextNode, doc = document) {
555 contextNode = contextNode || doc;
556 try {

Callers 1

getAllElementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected