Skip to content

Instantly share code, notes, and snippets.

@abi

abi/x

Created February 4, 2009 03:39
Show Gist options
  • Save abi/57911 to your computer and use it in GitHub Desktop.
Save abi/57911 to your computer and use it in GitHub Desktop.
/* This is a template command */
CmdUtils.CreateCommand({
name: "hide-lazybar",
homepage: "http://foyrek.com/",
author: { name: "Abimanyu", email: "abimanyuraja@gmail.com"},
license: "GPL",
description: "Hides the LazyBar",
execute: function(input) {
var chromeWindow =
Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator)
.getMostRecentWindow("navigator:browser");
chromeWindow.document.getElementById("topbar").setAttribute("style", "display: none;");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment