summaryrefslogtreecommitdiff
path: root/data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button.xul
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@gnu.org>2014-10-20 02:24:51 +0200
committerRuben Rodriguez <ruben@gnu.org>2014-10-20 02:24:51 +0200
commit6e7918b6ccb69876d339a320091fdee811445395 (patch)
tree31cb88ee438d652fddefca1193f70289a8b3dcc8 /data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button.xul
parent60e5b13c35d4d3ba21bb03b026750a0a414f6c77 (diff)
Generalize data directory
Diffstat (limited to 'data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button.xul')
-rw-r--r--data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button.xul71
1 files changed, 71 insertions, 0 deletions
diff --git a/data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button.xul b/data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button.xul
new file mode 100644
index 0000000..c3cbed0
--- /dev/null
+++ b/data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button.xul
@@ -0,0 +1,71 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://https-everywhere/skin/https-everywhere.css" type="text/css"?>
+
+<!DOCTYPE overlay SYSTEM "chrome://https-everywhere/locale/https-everywhere.dtd">
+
+<!-- helpful docs at
+ https://developer.mozilla.org/en/XUL/PopupGuide/PopupEvents -->
+
+<overlay id="https-everywhere-button-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <script type="application/x-javascript" src="chrome://https-everywhere/content/toolbar_button.js"/>
+ <script type="application/x-javascript" src="chrome://https-everywhere/content/ruleset-tests.js"/>
+
+ <stringbundleset id="stringbundleset">
+ <stringbundle id="HttpsEverywhereStrings"
+ src="chrome://https-everywhere/locale/https-everywhere.properties" />
+ </stringbundleset>
+
+ <!-- this works in Firefox, we need a Seamonkey version too... -->
+ <menupopup id="menu_ToolsPopup" onpopupshowing="stitch_context_menu()">
+ <menu id="https-everywhere-menu" label="&https-everywhere.about.ext_name;">
+ <!-- "https-everywhere-context" below gets .cloneNode()ed in here -->
+ </menu>
+ </menupopup>
+
+ <menupopup id="toolsPopup" onpopupshowing="stitch_context_menu2()">
+ <menu id="https-everywhere-menu2" label="&https-everywhere.about.ext_name;">
+ <!-- "https-everywhere-context" below gets .cloneNode()ed in here -->
+ </menu>
+ </menupopup>
+
+ <toolbarpalette id="BrowserToolbarPalette">
+ <toolbarbutton
+ id="https-everywhere-button"
+ tooltiptext="&https-everywhere.about.ext_name;"
+ label="HTTPS"
+ context="https-everywhere-context-menu"
+ oncontextmenu="this.open = true;"
+ oncommand="this.open = true;"
+ buttonstyle="pictures"
+ type="menu"
+ rulesetsApplied="0">
+
+ <menupopup id="https-everywhere-context" onpopupshowing="show_applicable_list(this)">
+ <!-- entries will be written here by ApplicableList.populate_menu() -->
+ <menuseparator />
+ <menuitem type="checkbox" id="https-everywhere-counter-item" label="&https-everywhere.menu.showCounter;"
+ oncommand="httpsEverywhere.toolbarButton.toggleShowCounter()" />
+ <menuseparator />
+ <menuitem label="&https-everywhere.menu.observatory;" command="https-everywhere-menuitem-observatory" />
+ <menuitem label="&https-everywhere.menu.about;" command="https-everywhere-menuitem-about" />
+ </menupopup>
+ </toolbarbutton>
+ </toolbarpalette>
+ <commandset>
+ <command id="https-everywhere-menuitem-globalEnableToggle"
+ oncommand="toggleEnabledState();" />
+ <command id="https-everywhere-menuitem-preferences"
+ oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/preferences.xul', 'chrome,centerscreen,resizable=yes');" />
+ <command id="https-everywhere-menuitem-about"
+ oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/about.xul');" />
+ <command id="https-everywhere-menuitem-observatory"
+ oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/observatory-preferences.xul', 'chrome,centerscreen,resizable=yes');" />
+ <command id="https-everywhere-menuitem-donate-eff"
+ oncommand="open_in_tab('https://www.eff.org/donate');" />
+ <command id="https-everywhere-menuitem-donate-tor"
+ oncommand="open_in_tab('https://www.torproject.org/donate');" />
+ <command id="https-everywhere-menuitem-ruleset-tests"
+ oncommand="openStatus();" />
+ </commandset>
+</overlay>
+