• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Hack the Chrome Ugly > 80. Make a Toolbar That Can’t Be Hidden

Make a Toolbar That Can’t Be Hidden

Decorate window pop ups with a toolbar that no web page can remove.

You might not like HTML window pop ups, but sometimes there’s no choice but to put up with them. Banking sites are a common example. When a pop-up window is stripped of all browser toolbars, it takes away more user control than technical people are comfortable with. This hack shows how to put in a toolbar that can’t be taken away. It’s a very quick-and-dirty hack.

Adding a Permanent Toolbar

To make this change, we’ll modify the browser.jar chrome archive in the install area.

Warning

Make a backup copy of this file first.

Copy the existing browser.jar file and unpack it in a temporary directory. Edit the browser.xul file with a text editor. Find the <toolbox> tag; that’s the tag that holds the menu bars and toolbars at the top of the browser window. That tag’s first child is a <toolbar> tag. Ignore that tag; it holds the menu bar. After that tag’s closing tag, add this content:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint