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

Function getElementByCSS

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

Source from the content-addressed store, hash-verified

546 },
547 };
548 function getElementByCSS(css, contextNode = document) {
549 return contextNode.querySelector(css);
550 }
551 function getAllElementsByCSS(css, contextNode = document) {
552 return [].slice.call(contextNode.querySelectorAll(css));
553 }

Callers 1

getOneElementsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected