Browse Source

[ABPRIME] Add Interlink support

custom-2020
Matt A. Tobin 4 years ago committed by Roy Tam
parent
commit
69ad0dad37
  1. 8
      abprime/addon/install.rdf
  2. 2
      abprime/content/jar.mn
  3. 52
      abprime/content/mailOverlay.xul

8
abprime/addon/install.rdf

@ -46,5 +46,13 @@
<em:maxVersion>2.*</em:maxVersion>
</Description>
</em:targetApplication>
<em:targetApplication>
<Description>
<!-- Interlink (Mail) -->
<em:id>{3550f703-e582-4d05-9a08-453d09bdfdc6}</em:id>
<em:minVersion>52.9.6884</em:minVersion>
<em:maxVersion>52.9.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>

2
abprime/content/jar.mn

@ -22,6 +22,7 @@
content/firstRun.js
* content/firstRun.xul
content/flasher.js
* content/mailOverlay.xul
* content/navigatorOverlay.xul
content/objtabs.css
* content/overlay.js
@ -46,6 +47,7 @@
#endif
% overlay chrome://navigator/content/navigator.xul chrome://@ADDON_CHROME_NAME@/content/navigatorOverlay.xul application={a3210b97-8e8a-4737-9aa0-aa0e607640b9}
% overlay chrome://navigator/content/navigator.xul chrome://@ADDON_CHROME_NAME@/content/mailOverlay.xul application={3550f703-e582-4d05-9a08-453d09bdfdc6}
# Hack to prevent .Net Framework Assistant from messing up the browser
% override chrome://dotnetassistant/content/bootstrap.xul data:text/xml,<nada/>

52
abprime/content/mailOverlay.xul

@ -0,0 +1,52 @@
<?xml version="1.0"?>
<!-- This Source Code is subject to the terms of the Mozilla Public License
- version 2.0 (the "License"). You can obtain a copy of the License at
- http://mozilla.org/MPL/2.0/. -->
<?xul-overlay href="chrome://adblockplus/content/ui/overlayGeneral.xul"?>
<overlay id="abp-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Window extensions -->
<window id="messengerWindow">
<popupset id="abp-popupset"/>
<keyset id="abp-keyset"/>
<commandset id="abp-commandset"/>
<box id="abp-hooks" getBrowser="return this.window.getMessageBrowser();"
addTab="this.window.openNewTabWith(arguments[0], (arguments[1] ? this.window.content.document : null), (arguments[1] ? arguments[1].shiftKey : false));"
getContextMenu="return this.E('messagePaneContext');"
getToolbox="return this.E('mail-toolbox')"
getDefaultToolbar="return this.E('msgToolbar');" toolbarInsertBefore="return this.E('button-junk');"/>
</window>
<!-- Status bar -->
<statusbar id="status-bar">
<statusbarpanel id="abp-status"/>
</statusbar>
<!-- Toolbar -->
<toolbarpalette id="MailToolbarPalette">
<toolbarbutton id="abp-toolbarbutton" type="menu-button" insertafter="button-junk"
class="toolbarbutton-1"/>
</toolbarpalette>
<!-- Tools menu -->
<menupopup id="taskPopup">
<menu id="abp-menuitem" insertafter="downloadmgr,javaScriptConsole"/>
</menupopup>
<!-- Context menu -->
<menupopup id="messagePaneContext">
<menuitem id="abp-image-menuitem"/>
<menuitem id="abp-object-menuitem"/>
<menuitem id="abp-media-menuitem"/>
<menuitem id="abp-frame-menuitem"/>
<menuitem id="abp-removeWhitelist-menuitem"/>
</menupopup>
<!-- Fake sidebar -->
<vbox id="messagepanebox">
<splitter id="abp-sidebar-splitter"/>
<vbox id="abp-sidebar"/>
</vbox>
</overlay>
Loading…
Cancel
Save