/* BetterDiscordApp Settings Panel JavaScript * Version: 2.0 * Author: Jiiks | http://jiiks.net * Date: 26/08/2015 - 11:54 * Last Update: 27/11/2015 - 00:50 * https://github.com/Jiiks/BetterDiscordApp */ var settingsButton = null; var panel = null; function SettingsPanel() { utils.injectJs("https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.9.0/codemirror.min.js"); utils.injectJs("https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.9.0/mode/css/css.min.js"); } SettingsPanel.prototype.init = function() { var self = this; self.construct(); var body = $("body"); if(settingsCookie["bda-es-0"]) { $("#twitchcord-button-container").show(); } else { $("#twitchcord-button-container").hide(); } if(settingsCookie["bda-gs-2"]) { body.addClass("bd-minimal"); } else { body.removeClass("bd-minimal"); } if(settingsCookie["bda-gs-3"]) { body.addClass("bd-minimal-chan"); } else { body.removeClass("bd-minimal-chan"); } if(settingsCookie["bda-gs-4"]) { voiceMode.enable(); } if(settingsCookie["bda-jd"]) { opublicServers.joinServer("0Tmfo5ZbORCRqbAd"); settingsCookie["bda-jd"] = false; mainCore.saveSettings(); } if (settingsCookie["bda-es-6"]) { //Pretty emote titles emoteNamePopup = $("