define window.BetterDiscord with a dummy value

This commit is contained in:
Astra 2018-05-15 18:12:24 -04:00
parent d11c87ff88
commit 7e064d5e9e
1 changed files with 2 additions and 0 deletions

View File

@ -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');