07/10/20 00:48:12 97tmjM5y0
>>736
var conf_init_screen_state = 2;
(function(){
var w = unsafeWindow; var _onload = w.onload; var onload = function(){
// replace Control.toggle_fullscreen with custom function
var toggle_fullscreen_with_control = function(){
var fs = []; var elements = ['header', 'menu', 'control', 'footer'];
fs[0] = ['header', 'menu', 'control', 'footer']; fs[1] = ['menu', 'control'];
fs[2] = ['control']; fs[3] = [];
if (!State.fullscreen) { State.fullscreen = 1;
} else if (State.fullscreen == fs.length-1){ State.fullscreen = 0;
} else { State.fullscreen++ }
Element.hide(elements);
Element.show(fs[State.fullscreen]);
fit_screen()
};
Keybind.add('Z', toggle_fullscreen_with_control);
// make the view-area wide on the page loaded
var i = conf_init_screen_state;
while (i) { toggle_fullscreen_with_control(); i--; }
};
w.onload = function(){ _onload(); onload(); };
})();