home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <bindings id="adblockBindings"
- xmlns="http://www.mozilla.org/xbl"
- xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:html="http://www.w3.org/1999/xhtml">
-
-
- <binding id="adblockloadmechanism" display="xul:button">
- <implementation>
- <constructor>
- <![CDATA[
-
- //initAdblockPrefObserver(); // trip the pref-observer to set our display-status
- if (!this.loaded) {
- this.loaded = true;
- abLoad = function() { adblockPrefObserver.load(); };
- window.addEventListener("load", abLoad, true);
- //setTimeout("adblockPrefObserver.load();", 0);
- this.style.setProperty("display", "none", null);
- }
-
-
- ]]>
- </constructor>
- </implementation>
- </binding>
-
- <binding id="statusbarpanel" display="xul:button">
- <content>
- <xul:spacer flex="1"/>
- <xul:label id="adblock-status-text" value="Unloaded" class="statusbarpanel-text"/>
- <xul:spacer flex="1"/>
- </content>
-
- <implementation>
- <constructor>
- <![CDATA[
-
- // if the statusbar is initially disabled, then re-enabled, our element is bound from scratch, requiring our pref-observer to re-sync
- adblockPrefObserver.statusText = document.getAnonymousNodes(this)[1];
- if (adblockPrefObserver.windowInit && !this.dragReload)
- adblockPrefObserver.observe(null, null, "adblock.enabled"); // element is rebound on insertion
-
-
- ]]>
- </constructor>
- </implementation>
- <handlers>
- <!-- My idea was to pop up a contextmenu on rightclick that would allow for disabling/enabling of adblock without opening prefs -->
- <!--
- <handler button="2" event="click" clickcount="1" action="window.open('chrome://adblock/content/about.xul','Adblock Preferences','chrome,centerscreen,resizable');"/>
- <handler button="0" event="click" clickcount="2" action="window.open('chrome://adblock/content/settings.xul','Adblock Preferences','chrome,centerscreen,resizable');"/>
- -->
- <handler button="0" event="click" clickcount="1" action="filterAllDialog(true);"/>
- <!-- Button 0 is left mouse, button 2 is right mouse (button 1 center) -->
- <!-- Using the doubleclick doesn't seem to work very well because the singleclick is still activated. -->
- </handlers>
- </binding>
-
- </bindings>