Skip to content

Instantly share code, notes, and snippets.

@noodlebox
noodlebox / tempfix.plugin.js
Last active January 9, 2017 19:27
Temporary BD Fix
//META{"name":"tempFix"}*//
/*@cc_on
@if (@_jscript)
// Offer to self-install for clueless users that try to run this directly.
var shell = WScript.CreateObject("WScript.Shell");
var fs = new ActiveXObject("Scripting.FileSystemObject");
var pathPlugins = shell.ExpandEnvironmentStrings("%APPDATA%\\BetterDiscord\\plugins");
var pathSelf = WScript.ScriptFullName;
// Put the user at ease by addressing them in the first person