From 60fdc8ccc45ccbbfde35757d36cd7cfe6b93b2be Mon Sep 17 00:00:00 2001 From: Jiiks Date: Sat, 31 Oct 2015 23:24:40 +0200 Subject: [PATCH] Voicemode cycling --- js/main.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/main.js b/js/main.js index 3b6dbbff..37620131 100644 --- a/js/main.js +++ b/js/main.js @@ -143,6 +143,7 @@ Core.prototype.initObserver = function() { if(mutation.target.getAttribute('class') != null) { if(mutation.target.getAttribute('class').indexOf("titlebar") != -1) { quickEmoteMenu.obsCallback(); + voiceMode.obsCallback(); } } emoteModule.obsCallback(mutation); @@ -719,6 +720,13 @@ function VoiceMode() { } +VoiceMode.prototype.obsCallback = function() { + if(settingsCookie["bda-gs-4"]) { + this.disable(); + this.enable(); + } +} + VoiceMode.prototype.enable = function() { $(".scroller.guild-channels ul").first().css("display", "none"); $(".scroller.guild-channels header").first().css("display", "none");