This is only possible with JavaScript API available in Plus and Premium plans. See: Function Viewer.menuVisible - #2 by jan