this process used to be a lot more complicated because powercord didn't work on electron versions above 10 (check gist revisions) but now it's super simple. Refer to powercord-org/powercord#442 (comment)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const electron = require("electron"); | |
const { join } = require("path"); | |
class BrowserWindow extends electron.BrowserWindow { | |
constructor(options) { | |
if (options?.webPreferences?.preload && options.title) { | |
// Replace Discords preload script with our own | |
process.env.DISCORD_PRELOAD = options.webPreferences.preload; | |
options.webPreferences.preload = join(__dirname, "preload.js"); |
The Android Debug Bridge (adb) is a really useful tool to interface with your phone from a Terminal on your Pc. It is an official Android debugging tool made by Google.
In order to use it on your phone, you will first have to enable USB debugging:
- Enable Developer Options. You can do so by going to Settings > About Phone and tapping Build Number 7 times
- Now go to Settings > System > Developer options and enable Usb Debugging
NewerOlder