home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 September / APC0409D1.iso / f_looks / files / adblock-0.5-dev.xpi / chrome / adblock.jar / content / adblock.xul < prev    next >
Encoding:
Extensible Markup Language  |  2004-06-26  |  7.0 KB  |  105 lines

  1. <?xml version="1.0"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.     - Version: MPL 1.1
  4.     -
  5.     - The contents of this file are subject to the Mozilla Public License Version
  6.     - 1.1 (the "License"); you may not use this file except in compliance with
  7.     - the License. You may obtain a copy of the License at
  8.     - http://www.mozilla.org/MPL/
  9.     -
  10.     - Software distributed under the License is distributed on an "AS IS" basis,
  11.     - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.     - for the specific language governing rights and limitations under the
  13.     - License.
  14.     -
  15.     - The Original Code is Adblock for Mozilla.
  16.     -
  17.     - The Initial Developer of the Original Code is
  18.     - Henrik Aasted Sorensen.
  19.     - Portions created by the Initial Developer are Copyright (C) 2002
  20.     - the Initial Developer. All Rights Reserved.
  21.     -
  22.     - Contributor(s):
  23.     - Henrik Aasted Sorensen <henrik@aasted.org>
  24.     - Stefan Kinitz
  25.     - Wladimir Palant
  26.     - rue
  27.     - ***** END LICENSE BLOCK ***** -->
  28.  
  29. <?xml-stylesheet href="chrome://adblock/content/adblock.css" type="text/css"?>
  30.  
  31. <overlay id="adblock-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  32.  
  33.     <script src="adblock.js"/>    
  34.     <script src="global.js"/>    
  35.     <!-- script>
  36.         <![CDATA[
  37.             // our window-load itinerary resides in the pref-observer's onload, now   (adblock.js)
  38.         ]]>
  39.     </script -->
  40.     
  41.     <statusbar id="status-bar">
  42.         <statusbarpanel id="adblock-status" label="Unloaded" status="unloaded" quickblock="off" xxinsertafter="statusbarpanel-progress,security-button,privacy-button,offline-status,popupIcon,statusbar-display,component-bar"/>
  43.         <!-- 
  44.         <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"/>
  45.         <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="">
  46.                 <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');"/>
  47.                 <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');"/>
  48.         </popup>
  49.         -->
  50.     </statusbar> 
  51.  
  52.     <!-- mozilla keybindings -->
  53.     <keyset id="navKeys">
  54.         <key id="mozillakey-toggle-adblock" modifiers="accel,shift" key="b" oncommand="toggleAdblockEnable();"/>
  55.         <key id="mozillakey-toggle-adblock-flashblock" modifiers="accel,shift" key="f" oncommand="toggleObjectOverride();"/>
  56.         <key id="mozillakey-launch-adblock-filterall" modifiers="accel,shift" key="a" oncommand="filterAllDialog(true);"/>
  57.         <key id="mozillakey-toggle-adblock-quickblock" modifiers="accel,shift" key="k" oncommand="toggleQuickblockEnable();"/>
  58.         <key id="mozillakey-launch-adblock-preferences" modifiers="accel,shift" key="p" oncommand="adblockSettings();"/>
  59.     </keyset>
  60.     <!-- firebird keybindings -->
  61.     <keyset id="mainKeyset">
  62.         <key id="firebirdkey-toggle-adblock" modifiers="accel,shift" key="b" oncommand="toggleAdblockEnable();"/>
  63.         <key id="firebirdkey-toggle-adblock-flashblock" modifiers="accel,shift" key="f" oncommand="toggleObjectOverride();"/>
  64.         <key id="firebirdkey-launch-adblock-filterall" modifiers="accel,shift" key="a" oncommand="filterAllDialog(true);"/>
  65.         <key id="firebirdkey-toggle-adblock-quickblock" modifiers="accel,shift" key="k" oncommand="toggleQuickblockEnable();"/>
  66.         <key id="firebirdkey-launch-adblock-preferences" modifiers="accel,shift" key="p" oncommand="adblockSettings();"/>
  67.     </keyset>
  68.  
  69.     <!-- mozilla tools menu -->
  70.     <menupopup id="taskPopup">
  71.     <!--menuseparator id="adblock-separator-mozillamenuitem" xxinsertafter="popup,image,wallet" position="3"/-->
  72.     <menu label="Adblock" accesskey="A" position="6">
  73.         <menupopup>
  74.             <menuitem id="adblock-filterall-mozillamenuitem" label="List All Blockable Elements" key="mozillakey-launch-adblock-filterall" oncommand="filterAllDialog(true);"/>
  75.             <menuitem id="adblock-objectoverride-mozillamenuitem" label="Overlay Flash (for left-click)" key="mozillakey-toggle-adblock-flashblock" xxtype="checkbox" xxchecked="false" oncommand="toggleObjectOverride();"/>
  76.             <menuseparator/>
  77.             <menuitem id="adblock-settings-mozillamenuitem" label="Preferences" key="mozillakey-launch-adblock-preferences" oncommand="adblockSettings()"/>
  78.         </menupopup>
  79.     </menu>
  80.     </menupopup>
  81.     <!-- firebird tools menu -->
  82.     <menupopup id="menu_ToolsPopup">
  83.     <!--menuseparator id="adblock-separator-firebirdmenuitem" xxinsertafter="popup,image,wallet" position="3"/-->
  84.     <menu label="Adblock" accesskey="A" position="7">
  85.         <menupopup>
  86.             <menuitem id="adblock-filterall-firebirdmenuitem" label="List All Blockable Elements" key="firebirdkey-launch-adblock-filterall" oncommand="filterAllDialog(true);"/>
  87.             <menuitem id="adblock-objectoverride-firebirdmenuitem" label="Overlay Flash (for left-click)" key="firebirdkey-toggle-adblock-flashblock" xxtype="checkbox" xxchecked="false" oncommand="toggleObjectOverride();"/>
  88.             <menuseparator/>
  89.             <menuitem id="adblock-settings-firebirdmenuitem" label="Preferences" key="firebirdkey-launch-adblock-preferences" oncommand="adblockSettings();"/>
  90.         </menupopup>
  91.     </menu>
  92.     </menupopup> 
  93.     
  94.     <!-- common context-menu -->
  95.     <popup id="contentAreaContextMenu">
  96.         <!--menuseparator id="adblock-separator-menuitem" enabled="true"/ -->
  97.         <menuitem id="adblock-image-menuitem" label="Adblock Image" enabled="true" oncommand="itemFilterDialog();"/>
  98.         <menuitem id="adblock-embed-menuitem" label="Adblock Embed" enabled="true" oncommand="itemFilterDialog();"/>
  99.         <menuitem id="adblock-object-menuitem" label="Adblock Object" enabled="true" oncommand="itemFilterDialog();"/>
  100.         <menuitem id="adblock-applet-menuitem" label="Adblock Applet" enabled="true" oncommand="itemFilterDialog();"/>
  101.         <menuitem id="adblock-iframe-menuitem" label="Adblock iFrame" enabled="true" oncommand="itemFilterDialog(true);"/>
  102.         <menuitem id="adblock-maparea-menuitem" label="Adblock Remove Map" enabled="true" oncommand="disableMapArea();"/>
  103.     </popup> 
  104.     
  105. </overlay>