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

Function getElementByCSS

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

Source from the content-addressed store, hash-verified

360 },
361 };
362 function getElementByCSS(css, contextNode = document) {
363 return contextNode.querySelector(css);
364 }
365 function getAllElementsByCSS(css, contextNode = document) {
366 return [].slice.call(contextNode.querySelectorAll(css));
367 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected