diff options
Diffstat (limited to 'data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button_binding.xml')
-rw-r--r-- | data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button_binding.xml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button_binding.xml b/data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button_binding.xml new file mode 100644 index 0000000..1981b3a --- /dev/null +++ b/data/extensions/https-everywhere@eff.org/chrome/content/toolbar_button_binding.xml @@ -0,0 +1,33 @@ +<?xml version="1.0"?> +<!-- +Toolbar button needs to be extended to show a counter for the number of +rulesets applied, and this can be done using XBL. + +See: https://developer.mozilla.org/en-US/docs/XBL +--> +<bindings xmlns="http://www.mozilla.org/xbl" + xmlns:xbl="http://www.mozilla.org/xbl" + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + + <binding id="https-everywhere-binding"> + <content> + <!-- ruleset counter (rscounter) and rulesets applied (rsapplied) --> + <xul:stack id="rscounter"> + <xul:label id="rsapplied" xbl:inherits="value=rulesetsApplied" /> + </xul:stack> + + <!-- + Https everywhere toolbar button is already defined; just use its settings. + TODO: Look into any issues with oncommand/oncontext. + --> + <xul:toolbarbutton + class="https-everywhere-button toolbarbutton-1 chromeclass-toolbar-additional" + flex="1" + allowevents="true" + xbl:inherits="type,crop,image,label,accesskey,command,align,dir,pack,orient,wrap"> + + <children includes="menupopup" /> + </xul:toolbarbutton> + </content> + </binding> +</bindings> |