From 7e064d5e9ee63acd6cd0e21deba4e7bc864bed6b Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 15 May 2018 18:12:24 -0400 Subject: [PATCH] define window.BetterDiscord with a dummy value --- crxpwn.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crxpwn.js b/crxpwn.js index 2ff675e..7c423ed 100644 --- a/crxpwn.js +++ b/crxpwn.js @@ -33,6 +33,8 @@ function evaluate(str, exportsR) { if (location.hostname.indexOf('discordapp') == -1) return; __crxprint('extension loaded successfully, loading CRISPR and EPAPI...'); + window.BetterDiscord = 'this is a dummy value to trip hasSuspiciousCode()'; + // use the discord native api to require electron and get electron.remote var electron = DiscordNative.nativeModules.requireModule('discord_/../electron').remote; var fs = electron.require('original-fs');