home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- ***** BEGIN LICENSE BLOCK *****
- - Version: MPL 1.1
- -
- - The contents of this file are subject to the Mozilla Public License Version
- - 1.1 (the "License"); you may not use this file except in compliance with
- - the License. You may obtain a copy of the License at
- - http://www.mozilla.org/MPL/
- -
- - Software distributed under the License is distributed on an "AS IS" basis,
- - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- - for the specific language governing rights and limitations under the
- - License.
- -
- - The Original Code is Adblock for Mozilla.
- -
- - The Initial Developer of the Original Code is
- - Henrik Aasted Sorensen.
- - Portions created by the Initial Developer are Copyright (C) 2002
- - the Initial Developer. All Rights Reserved.
- -
- - Contributor(s):
- - Henrik Aasted Sorensen <henrik@aasted.org>
- - Stefan Kinitz
- - Wladimir Palant
- - rue
- - ***** END LICENSE BLOCK ***** -->
-
- <?xml-stylesheet href="chrome://adblock/content/adblock.css" type="text/css"?>
-
- <overlay id="adblock-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
- <script src="adblock.js"/>
- <script src="global.js"/>
- <!-- script>
- <![CDATA[
- // our window-load itinerary resides in the pref-observer's onload, now (adblock.js)
- ]]>
- </script -->
-
- <statusbar id="status-bar">
- <statusbarpanel id="adblock-status" label="Unloaded" status="unloaded" quickblock="off" xxinsertafter="statusbarpanel-progress,security-button,privacy-button,offline-status,popupIcon,statusbar-display,component-bar"/>
- <!--
- <statusbarpanel id="adblock-status" xxcontext="statusbar-menu" XXtooltiptext="" label="Unloaded" status="unloaded" quickblock="off" xxinsertafter="statusbarpanel-progress,security-button,privacy-button,offline-status,popupIcon,statusbar-display,component-bar"/>
- <popup id="statusbar-menu" position="before_end" onpopupshown="var Branch = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch('adblock.'); var isEnabled = !Branch.prefHasUserValue('enabled') || Branch.getBoolPref('enabled'); if(isEnabled) { document.getElementById('enableAdblock').collapsed = true; document.getElementById('disableAdblock').collapsed = false;} else { document.getElementById('enableAdblock').collapsed = false; document.getElementById('disableAdblock').collapsed = true; }" onpopuphidden="">
- <menuitem id="enableAdblock" label="Enable Adblock" oncommand="Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch('adblock.').setBoolPref('enabled', true); Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService).notifyObservers(null, 'Adblock-PrefChange', 'adblock');"/>
- <menuitem id="disableAdblock" label="Disable Adblock" oncommand="Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefService).getBranch('adblock.').setBoolPref('enabled', false); Components.classes['@mozilla.org/observer-service;1'].getService(Components.interfaces.nsIObserverService).notifyObservers(null, 'Adblock-PrefChange', 'adblock');"/>
- </popup>
- -->
- </statusbar>
-
- <!-- mozilla keybindings -->
- <keyset id="navKeys">
- <key id="mozillakey-toggle-adblock" modifiers="accel,shift" key="b" oncommand="toggleAdblockEnable();"/>
- <key id="mozillakey-toggle-adblock-flashblock" modifiers="accel,shift" key="f" oncommand="toggleObjectOverride();"/>
- <key id="mozillakey-launch-adblock-filterall" modifiers="accel,shift" key="a" oncommand="filterAllDialog(true);"/>
- <key id="mozillakey-toggle-adblock-quickblock" modifiers="accel,shift" key="k" oncommand="toggleQuickblockEnable();"/>
- <key id="mozillakey-launch-adblock-preferences" modifiers="accel,shift" key="p" oncommand="adblockSettings();"/>
- </keyset>
- <!-- firebird keybindings -->
- <keyset id="mainKeyset">
- <key id="firebirdkey-toggle-adblock" modifiers="accel,shift" key="b" oncommand="toggleAdblockEnable();"/>
- <key id="firebirdkey-toggle-adblock-flashblock" modifiers="accel,shift" key="f" oncommand="toggleObjectOverride();"/>
- <key id="firebirdkey-launch-adblock-filterall" modifiers="accel,shift" key="a" oncommand="filterAllDialog(true);"/>
- <key id="firebirdkey-toggle-adblock-quickblock" modifiers="accel,shift" key="k" oncommand="toggleQuickblockEnable();"/>
- <key id="firebirdkey-launch-adblock-preferences" modifiers="accel,shift" key="p" oncommand="adblockSettings();"/>
- </keyset>
-
- <!-- mozilla tools menu -->
- <menupopup id="taskPopup">
- <!--menuseparator id="adblock-separator-mozillamenuitem" xxinsertafter="popup,image,wallet" position="3"/-->
- <menu label="Adblock" accesskey="A" position="6">
- <menupopup>
- <menuitem id="adblock-filterall-mozillamenuitem" label="List All Blockable Elements" key="mozillakey-launch-adblock-filterall" oncommand="filterAllDialog(true);"/>
- <menuitem id="adblock-objectoverride-mozillamenuitem" label="Overlay Flash (for left-click)" key="mozillakey-toggle-adblock-flashblock" xxtype="checkbox" xxchecked="false" oncommand="toggleObjectOverride();"/>
- <menuseparator/>
- <menuitem id="adblock-settings-mozillamenuitem" label="Preferences" key="mozillakey-launch-adblock-preferences" oncommand="adblockSettings()"/>
- </menupopup>
- </menu>
- </menupopup>
- <!-- firebird tools menu -->
- <menupopup id="menu_ToolsPopup">
- <!--menuseparator id="adblock-separator-firebirdmenuitem" xxinsertafter="popup,image,wallet" position="3"/-->
- <menu label="Adblock" accesskey="A" position="7">
- <menupopup>
- <menuitem id="adblock-filterall-firebirdmenuitem" label="List All Blockable Elements" key="firebirdkey-launch-adblock-filterall" oncommand="filterAllDialog(true);"/>
- <menuitem id="adblock-objectoverride-firebirdmenuitem" label="Overlay Flash (for left-click)" key="firebirdkey-toggle-adblock-flashblock" xxtype="checkbox" xxchecked="false" oncommand="toggleObjectOverride();"/>
- <menuseparator/>
- <menuitem id="adblock-settings-firebirdmenuitem" label="Preferences" key="firebirdkey-launch-adblock-preferences" oncommand="adblockSettings();"/>
- </menupopup>
- </menu>
- </menupopup>
-
- <!-- common context-menu -->
- <popup id="contentAreaContextMenu">
- <!--menuseparator id="adblock-separator-menuitem" enabled="true"/ -->
- <menuitem id="adblock-image-menuitem" label="Adblock Image" enabled="true" oncommand="itemFilterDialog();"/>
- <menuitem id="adblock-embed-menuitem" label="Adblock Embed" enabled="true" oncommand="itemFilterDialog();"/>
- <menuitem id="adblock-object-menuitem" label="Adblock Object" enabled="true" oncommand="itemFilterDialog();"/>
- <menuitem id="adblock-applet-menuitem" label="Adblock Applet" enabled="true" oncommand="itemFilterDialog();"/>
- <menuitem id="adblock-iframe-menuitem" label="Adblock iFrame" enabled="true" oncommand="itemFilterDialog(true);"/>
- <menuitem id="adblock-maparea-menuitem" label="Adblock Remove Map" enabled="true" oncommand="disableMapArea();"/>
- </popup>
-
- </overlay>