How Can I hide and unhide Menu Bar using Firefox Add-on SDK Javascript?
I have written these codes.
//This works only for the current window
let toolbarMenubar = viewFor(browserWindows.activeWindow).document.getElementById(“toolbar-menubar”);
toolbarMenubar.setAttribute(“autohide”, “false”);
Sure I can make this code to run on every window and every time a new window gets opened, but I was wondering if there is any better way to do that, just like as if you have set it manually in the “Customize Firefox”.