Skip to content

Instantly share code, notes, and snippets.

// itpipe.js
/**
* Creates a proxy that captures method calls for piping
* @returns {Proxy} The 'it' proxy object
*/
const createItProxy = () => {
return new Proxy({}, {
get: (target, prop) => {
if (typeof prop === 'symbol' || prop === 'inspect') {
return () => {};
function selectListing(name) {
return document.querySelector(`h3[data-tag="${name}"]`);
}
const items = document.querySelectorAll(".opblock-tag-section > h3 > a > span");
let paths = [];
for (const { textContent } of items) {
paths.push(textContent);
}