Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

Commit

Permalink
adjust for discord's new loading scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
rauenzi committed Aug 13, 2018
1 parent ebce0d0 commit aba5dee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dom_shit.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ process.once("loaded", async () => {
if (window.ED.config.antiTrack !== false)
window.monkeyPatch(window.findModule('track'), 'track', () => {});

while (Object.keys(window.req.c).length < 5000)
await c.sleep(1000); // wait until most modules are loaded for plugins

//load and validate plugins
let pluginFiles = fs.readdirSync(path.join(process.env.injDir, 'plugins'));
let plugins = {};
Expand Down

0 comments on commit aba5dee

Please sign in to comment.