Skip to content

Instantly share code, notes, and snippets.

View Vendicated's full-sized avatar
🍸
Tequila

V Vendicated

🍸
Tequila
  • World Wide World
  • 16:39 (UTC +02:00)
View GitHub Profile
@Vendicated
Vendicated / WebpackSearchWorker.js
Last active November 4, 2022 14:15
Discord Webpack Search with a WebWorker
if (typeof wreq === "undefined") {
var wreq = webpackChunkdiscord_app.push([[Symbol()], {}, w => w]);
webpackChunkdiscord_app.pop();
}
function makeWebpackSearchWorker() {
// Step 1: Build Export and Code map to pass to the worker.
// This is because you can't serialise functions, so we have to transform webpack first
var exportMap = {};
@Vendicated
Vendicated / index.js
Last active March 12, 2023 17:59
discord_arch_electron stream fix
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");
@Vendicated
Vendicated / guide.md
Last active June 16, 2021 18:03
Install powercord with the discord-canary-electron-bin package

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)

@Vendicated
Vendicated / vanced_samsung_fix.md
Last active February 10, 2021 20:45
Guide to uninstall Vanced or Vanced Music using adb

Fix INSTALL_FAILED_UPDATE_INCOMPATIBLE error using adb

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