HenryEx

devmenu.js

Jul 17th, 2022
1,583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /** @param {NS} ns */
  2. export async function main(ns) {
  3.     const getProps = (obj) =>
  4.     Object.entries(obj).find(entry => entry[0]?.startsWith('__reactProps'))?.[1]?.children?.props;
  5.  
  6.     Array.from(eval("document")
  7.     .querySelectorAll("[class*=MuiBox-root]"))
  8.     .map(box => getProps(box))
  9.     .find(x => x?.player)
  10.     ?.router
  11.     .toDevMenu();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment