This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 () => {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |