/* BetterDiscordApp Core JavaScript * Version: 1.53 * Author: Jiiks | http://jiiks.net * Date: 27/08/2015 - 16:36 * Last Update: 02/04/2016 * https://github.com/Jiiks/BetterDiscordApp */ var BD; var settingsPanel, emoteModule, utils, quickEmoteMenu, opublicServers, voiceMode, pluginModule, themeModule, customCssEditor; var mainObserver; var mainCore; var settingsCookie = {}; function Core() { BD = this; } Core.prototype.init = function () { var self = this; this.version = version; this.jsVersion = jsVersion; if (this.version < supportedVersion) { this.alert("Not Supported", "BetterDiscord v" + this.version + "(your version)" + " is not supported by the latest js(" + this.jsVersion + ").

Please download the latest version from BetterDiscord.net"); return; } this.utils = new Utils(); utils = new Utils(); utils.getHash(); emoteModule = new EmoteModule(); quickEmoteMenu = new QuickEmoteMenu(); voiceMode = new VoiceMode(); emoteModule.init(); this.initSettings(); this.initObserver(); //Incase were too fast function gwDefer() { console.log(new Date().getTime() + " Defer"); if ($(".guilds-wrapper .guilds").children().length > 0) { console.log(new Date().getTime() + " Defer Loaded"); var guilds = $(".guilds>li:first-child"); var showChannelsButton = $("' + ' ' + '
' + '
'; if (bdchangelog.changes != null) { changeLog += '' + '

' + ' New Stuff' + '

' + ''; } if (bdchangelog.fixes != null) { changeLog += '' + '

' + ' Fixed' + '

' + ''; } if (bdchangelog.upcoming != null) { changeLog += '' + '

' + ' Coming Soon' + '

' + ''; } changeLog += '' + '
' + '
' + ' ' + ' ' + ' ' + ''; return changeLog; }; Core.prototype.alert = function (title, text) { $("body").append('' + '
' + '
' + ' ' + title + '' + '
×
' + '
' + '
' + '
' + '
' + text + '
' + '
' + '
' + '
'); }; Core.prototype.getUtils = function() { return this.utils; };