Voicemode cycling

This commit is contained in:
Jiiks 2015-10-31 23:24:40 +02:00
parent 9f7d0b6b2c
commit 60fdc8ccc4
1 changed files with 8 additions and 0 deletions

View File

@ -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");