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

Function getAllElementsByCSS

Zhiyoo-Enhanced.user.js:431–433  ·  view source on GitHub ↗
(css, contextNode = document)

Source from the content-addressed store, hash-verified

429 return contextNode.querySelector(css);
430 }
431 function getAllElementsByCSS(css, contextNode = document) {
432 return [].slice.call(contextNode.querySelectorAll(css));
433 }
434 function getElementByXpath(xpath, contextNode, doc = document) {
435 contextNode = contextNode || doc;
436 try {

Callers 1

getAllElementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected