aboutsummaryrefslogtreecommitdiff
path: root/chrome/browserOverlay.xul
blob: 9c32654c75d57f69268ff876386c787e98401e7b (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
35
36
37
38
39
40
41
42
43
<?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"
			 oncommand="RedirectorOverlay.toggleEnabled();" />
  </commandset>

  <popupset>
	<tooltip id="redirector-tooltip"
			 onpopupshowing="RedirectorOverlay.updateTooltip(event);">
	  <label class="redirector-tooltip-version" />
	</tooltip>
  </popupset>

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