Voicemode cycling
This commit is contained in:
parent
9f7d0b6b2c
commit
60fdc8ccc4
|
@ -143,6 +143,7 @@ Core.prototype.initObserver = function() {
|
||||||
if(mutation.target.getAttribute('class') != null) {
|
if(mutation.target.getAttribute('class') != null) {
|
||||||
if(mutation.target.getAttribute('class').indexOf("titlebar") != -1) {
|
if(mutation.target.getAttribute('class').indexOf("titlebar") != -1) {
|
||||||
quickEmoteMenu.obsCallback();
|
quickEmoteMenu.obsCallback();
|
||||||
|
voiceMode.obsCallback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emoteModule.obsCallback(mutation);
|
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() {
|
VoiceMode.prototype.enable = function() {
|
||||||
$(".scroller.guild-channels ul").first().css("display", "none");
|
$(".scroller.guild-channels ul").first().css("display", "none");
|
||||||
$(".scroller.guild-channels header").first().css("display", "none");
|
$(".scroller.guild-channels header").first().css("display", "none");
|
||||||
|
|
Loading…
Reference in New Issue