aboutsummaryrefslogtreecommitdiff
path: root/chrome/browserOverlay.xul
blob: 5859a93e39c683fe3a76c6f54f81fc0ee17e76ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://redirector/skin/browser.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://redirector/locale/browserOverlay.dtd">
<overlay id="redirector-overlay"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <script src="chrome://redirector/content/js/browserOverlay.js"/>

  <stringbundleset id="stringbundleset">
    <stringbundle id="redirector-strings" src="chrome://redirector/locale/redirector.properties"/>
  </stringbundleset>

  <commandset>
	<command id="redirector-toggle"
			 label="Toggle"
			 oncommand="RedirectorOverlay.toggleEnabled();"/>
  </commandset>

  <toolbarpalette id="BrowserToolbarPalette">
	<toolbarbutton id="redirector-button"
				   label="URL Rewriter"
				   command="redirector-toggle"
				   class="toolbarbutton-1"
				   type="menu-button">
	  <menupopup>
		<menuitem id="redirector-enabled-item"
				  type="checkbox"
				  command="redirector-toggle"/>
		<menuitem id="redirector-settings-item"
				  label="Settings"
				  oncommand="RedirectorOverlay.openSettings();"/>
	  </menupopup>
	</toolbarbutton>
  </toolbarpalette>
</overlay>