zainstalowalem sobie tego removera https://addons.mozilla.org/de/firefox/a ... e/?src=api
i button faktycznie znika ale pozostaje puste miejsce :/
gdy okno ff jest zmaksymalizowane to wszystko wyglada cacy

w trybie okienkowym ktorego uzywam jest problem

moze ktos wie jak temu zaradzic? moze cos w skrypcie zmienic wystarczy?
- Kod: Zaznacz cały
/* ***** BEGIN LICENSE BLOCK *****
* http://www.mozilla.org/MPL/
* Contributor(s):
* Justin Sullivan
* ***** END LICENSE BLOCK ***** */
var watcher = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]
.getService(Components.interfaces.nsIWindowWatcher);
//a window opened, listen for "load"
var listenOpen = {
observe : function(aSubject, aTopic) {
if(aTopic!="domwindowopened")
return;
aSubject.addEventListener("load", function(mEvent) { doIt(aSubject);}, false);
}
};
function install() {};
function uninstall() {};
function startup(data, reason) {
// for new windows
watcher.registerNotification(listenOpen);
// for existing windows
var mWindows = watcher.getWindowEnumerator();
while (mWindows.hasMoreElements()) {
doIt(mWindows.getNext());
}
};
function shutdown(data, reason) {
if(reason==APP_SHUTDOWN)
return;
//stop notifying us of future windows
watcher.unregisterNotification(listenOpen);
//undo existing windows
var mWindows = watcher.getWindowEnumerator();
while (mWindows.hasMoreElements()) {
undoIt(mWindows.getNext());
}
};
// --------------
// the really unique code in the extension is below
function doIt(mItem) {
try{ // will fail if not a browser window
theButton = mItem.document.getElementById('appmenu-button');
theButton.oldStyleDisplay = theButton.style.display;
theButton.style.display = "none";
//if this window is maximized, update the tab positions
// how to do this directly?
mItem.TabsOnTop.toggle();
mItem.TabsOnTop.toggle();
} catch(e) {}
};
function undoIt(mItem) {
try{
theButton = mItem.document.getElementById('appmenu-button');
theButton.style.display = theButton.oldStyleDisplay;
mItem.TabsOnTop.toggle();
mItem.TabsOnTop.toggle();
} catch(e) {}
};