So today I will tell you how to make a version of the portable from the discord of any version with changed paths for the file with the token. After these steps, your file with tokens will be inaccessible for regular token loggers discord.
This so-called patch includes:
- Changing the path for storing files with the token (by default appdata/roaming/discord) to the directory where the discord itself is installed (Discord/data).
- Disable the installation of discord updates. This is necessary so that the patch does not subsequently fly off during the update.
Installation:
npm install -g asar
cd
Appdata / Local / Discord \ app- (version) \ resources
npx asar extract app.asar app
- In the app folder that appears in this directory, edit the following files:
4.1. app \ common \ moduleUpdater.js ===> Change skipHostUpdate = settings.get (SKIP_HOST_UPDATE) || ! updatable; ON skipHostUpdate = true;
4.2. app \ common \ paths.js ===> Change userDataPath = determineUserData (userDataRoot, buildInfo); ON userDataPath = _path.default.join (_path.default.dirname (process.execPath), '..', 'data');
npx asar pack app app.asar
- The app folder is not needed. You can delete.
- Start only with discord.exe which is installed in the folder of the version over which you performed the manipulations. (Discord\app-x.x.xxxx\Discord.exe)
- After that, it is advisable to copy the Discord folder to another location and delete the discord through the built-in Windows uninstaller and delete the AppData / Roaming / discord and AppData / Local / Discord files.
AFTER INSTALLATION, CLOSE DISCORD, DELETE AppData/Roaming/discord and AppData/Local/Discord FILES, THEN RUN DISCORD. EXCEPT AppData/Roamaning/discord/Dictionaries, NOTHING SHOULD APPEAR.