Advertisement
cv1

snippets [by happy.enderman#0]

cv1
May 7th, 2024
671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // this part enables developer activity shelf,
  2. // you might have an option for it already in [options -> advanced]
  3.  
  4. let wreq; webpackChunkdiscord_app.push([[Symbol()],{},(r) => wreq = r]);
  5. webpackChunkdiscord_app.pop();
  6.  
  7. let _mods = Object.values(wreq.c);
  8.  
  9. const findByProps = (...props) => {
  10.     for (let m of _mods) {
  11.         try {
  12.             if (!m.exports || m.exports === window) continue;
  13.             if (props.every((x) => m.exports?.[x])) return m.exports;
  14.  
  15.             for (let ex in m.exports) {
  16.                 if (props.every((x) => m.exports?.[ex]?.[x])) return m.exports[ex];
  17.             }
  18.         } catch {}
  19.     }
  20. }
  21.  
  22. // // // // // // // // // // // // // // // // // //
  23.  
  24. let appID = "insert here";
  25. // activity ids: https://gist.github.com/GeneralSadaf/42d91a2b6a93a7db7a39208f2d8b53ad
  26. findByProps("isDispatching").dispatch({
  27.     type: "DEVELOPER_TEST_MODE_AUTHORIZATION_SUCCESS",
  28.     applicationId: appID,
  29.     originURL: `https://localhost:3000`
  30. })
  31. findByProps("inTestModeForEmbeddedApplication").inTestModeForEmbeddedApplication(appId);
  32. console.log(`%c[activity] %cenabled %c${appId}%c.`, 'color: #FF873D', '', 'color: #FFD34F', '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement