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

Function getAllElementsByCSS

52pojie-Enhanced.user.js:350–352  ·  view source on GitHub ↗
(css, contextNode = document)

Source from the content-addressed store, hash-verified

348 return contextNode.querySelector(css);
349 }
350 function getAllElementsByCSS(css, contextNode = document) {
351 return [].slice.call(contextNode.querySelectorAll(css));
352 }
353 function getElementByXpath(xpath, contextNode, doc = document) {
354 contextNode = contextNode || doc;
355 try {

Callers 1

getAllElementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected