HenryEx icon

devmenu.js

HenryEx | PRO | 07/17/22 07:20:15 PM UTC | 0 ⭐ | 1549 👁️ | Never ⏰ | []
JavaScript |

330 B

|

None

|

0 👍

/

0 👎

/** @param {NS} ns */
export async function main(ns) {
    const getProps = (obj) =>
    Object.entries(obj).find(entry => entry[0]?.startsWith('__reactProps'))?.[1]?.children?.props;
 
    Array.from(eval("document")
    .querySelectorAll("[class*=MuiBox-root]"))
    .map(box => getProps(box))
    .find(x => x?.player)
    ?.router
    .toDevMenu();
}

Comments