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

Function getElementByCSS

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

Source from the content-addressed store, hash-verified

345 };
346 }
347 function getElementByCSS(css, contextNode = document) {
348 return contextNode.querySelector(css);
349 }
350 function getAllElementsByCSS(css, contextNode = document) {
351 return [].slice.call(contextNode.querySelectorAll(css));
352 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected