Skip to content

Instantly share code, notes, and snippets.

View megamit's full-sized avatar

Mitchell megamit

View GitHub Profile
@Jiiks
Jiiks / bdws.md
Created April 12, 2017 01:54
BetterDiscord Websocket explanation

Since so many idiots keep referencing the websocket code as something that steals your data and sends it to me; let me explain these "programmers" who keep posting it what it actually does.

What was the websocket for? keyword: was

The BetterDiscord websocket was used as a secondary websocket connection to Discord servers in order to catch messages etc.

BdWSocket.prototype.start = function () {
    var self = this;
 /* $.ajax({
@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