MCPcopy Index your code
hub / github.com/hoothin/UserScripts / findNodes

Function findNodes

Picviewer CE+/dist.user.js:25604–25617  ·  view source on GitHub ↗
(q, doc)

Source from the content-addressed store, hash-verified

25602 }
25603
25604 function findNodes(q, doc) {
25605 var nodes = [],
25606 node;
25607 if (!Array.isArray(q)) q = [q];
25608 for (var i = 0, len = q.length; i < len; i++) {
25609 node = qs(q[i], doc);
25610 if (node && node.length) {
25611 [].forEach.call(node, n => {
25612 nodes.push(n);
25613 });
25614 }
25615 }
25616 return nodes;
25617 }
25618
25619 function findFile(n, url) {
25620 pretreatment(n, true);

Callers 1

parsePageFunction · 0.70

Calls 1

qsFunction · 0.70

Tested by

no test coverage detected