- use the Custom Buttons extension and make a Titlebar Toggle button using the following under the 'Code' section -
Code: Select all
function hideChrome() {
if (navigator.platform == "Win32") {
window.moveTo(0,0);
window.maximize();
document.getElementById("main-window").setAttribute('hidechrome','true');
// preserve small area for taskbar to appear
window.resizeTo(screen.availWidth, screen.availHeight);
} else {
document.getElementById("main-window").setAttribute('hidechrome','true');
window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);
window.maximize();
}
}
function showChrome() {
if (navigator.platform == "Win32") {
document.getElementById("main-window").setAttribute('hidechrome','false');
window.resizeTo(screen.availWidth, screen.availHeight);
window.maximize();
window.resizeTo(screen.availWidth, screen.availHeight);
} else {
document.getElementById("main-window").setAttribute('hidechrome','false');
window.maximize();
window.maximize();
}
}
function toggleChrome() {
var mainWindow = document.getElementById("main-window");
var isFullScreen = mainWindow.getAttribute('hidechrome');
if (isFullScreen == "" || isFullScreen == 'false') {
hideChrome();
} else {
showChrome();
}
}
toggleChrome();
That's it, nothing else to see. Posted for info, etc