mirror of
https://github.com/MailHops/mailhops-plugin.git
synced 2025-05-17 23:00:10 -07:00
Changed msgView layout and added navigator.appName
This commit is contained in:
parent
47ee1306ad
commit
1d68d49640
BIN
._chrome.manifest
Normal file
BIN
._chrome.manifest
Normal file
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
content mailhops jar:chrome/mailhops.jar!/content/
|
content mailhops jar:chrome/mailhops.jar!/content/
|
||||||
skin mailhops classic/1.0 jar:chrome/mailhops.jar!/skin/classic/
|
skin mailhops classic/1.0 jar:chrome/mailhops.jar!/skin/classic/
|
||||||
overlay chrome://messenger/content/msgHdrViewOverlay.xul chrome://mailhops/content/mailWindowOverlay.xul
|
overlay chrome://messenger/content/msgHdrViewOverlay.xul chrome://mailhops/content/msgHdrViewOverlay.xul
|
||||||
|
BIN
chrome/content/._mailhops.js
Normal file
BIN
chrome/content/._mailhops.js
Normal file
Binary file not shown.
BIN
chrome/content/._msgHdrViewOverlay.xul
Normal file
BIN
chrome/content/._msgHdrViewOverlay.xul
Normal file
Binary file not shown.
@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<?xml-stylesheet href="chrome://mailhops/skin/mailhops.css" type="text/css"?>
|
|
||||||
|
|
||||||
<overlay id="mailrouteOverlay"
|
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
||||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
|
||||||
|
|
||||||
<script type="application/x-javascript" src="chrome://mailhops/content/mailhops.js"/>
|
|
||||||
|
|
||||||
<rows id="expandedHeader2Rows">
|
|
||||||
<row id="mailhops" collapsed="false">
|
|
||||||
<label id="mailhopsLabel" value="route " class="headerName"/>
|
|
||||||
<hbox id="mailhopsResult" flex="2">
|
|
||||||
<image id="mailhopsResultImage" tooltiptext="Click to view the travel map of this message." width="16" height="11"/>
|
|
||||||
<hbox id="mailhopsResultText"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
|
|
||||||
</overlay>
|
|
@ -9,6 +9,7 @@ var gNativeJSON = Components.classes["@mozilla.org/dom/json;1"].createInstance(C
|
|||||||
//IP regex
|
//IP regex
|
||||||
var gIPRegEx=/(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}$/;
|
var gIPRegEx=/(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}$/;
|
||||||
var gAllIPRegEx = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}/g;
|
var gAllIPRegEx = /(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)\.(1\d{0,2}|2(?:[0-4]\d{0,1}|[6789]|5[0-5]?)?|[3-9]\d?|0)(\/(?:[012]\d?|3[012]?|[456789])){0,1}/g;
|
||||||
|
var gAppName = window.navigator.appName!=null?window.navigator.appName:'';
|
||||||
|
|
||||||
var mailHops =
|
var mailHops =
|
||||||
{
|
{
|
||||||
@ -19,13 +20,13 @@ var mailHops =
|
|||||||
isLoaded: false,
|
isLoaded: false,
|
||||||
map: 'goog',
|
map: 'goog',
|
||||||
unit: 'mi',
|
unit: 'mi',
|
||||||
appVersion: 'MailHops Postbox 0.4.3'
|
appVersion: 'MailHops '+gAppName+' 0.4.3'
|
||||||
}
|
}
|
||||||
|
|
||||||
mailHops.startLoading = function()
|
mailHops.startLoading = function()
|
||||||
{
|
{
|
||||||
mailHops.isLoaded = true;
|
mailHops.isLoaded = true;
|
||||||
mailHops.container = document.getElementById ( "mailhops" ) ;
|
mailHops.container = document.getElementById ( "mailhopsBox" ) ;
|
||||||
mailHops.resultBox = document.getElementById ( "mailhopsResult" ) ;
|
mailHops.resultBox = document.getElementById ( "mailhopsResult" ) ;
|
||||||
mailHops.resultImage = document.getElementById ( "mailhopsResultImage" ) ;
|
mailHops.resultImage = document.getElementById ( "mailhopsResultImage" ) ;
|
||||||
mailHops.resultText = document.getElementById ( "mailhopsResultText" ) ;
|
mailHops.resultText = document.getElementById ( "mailhopsResultText" ) ;
|
||||||
|
21
chrome/content/msgHdrViewOverlay.xul
Normal file
21
chrome/content/msgHdrViewOverlay.xul
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<?xml-stylesheet href="chrome://mailhops/skin/mailhops.css" type="text/css"?>
|
||||||
|
|
||||||
|
<overlay id="mailrouteOverlay"
|
||||||
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
|
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<script type="application/x-javascript" src="chrome://mailhops/content/mailhops.js"/>
|
||||||
|
|
||||||
|
<vbox id="expandedHeaders">
|
||||||
|
<hbox id="mailhopsBox" class="mailheader" collapsed="false" flex="1">
|
||||||
|
<label id="mailhopsLabel" class="headerName" value="route: "/>
|
||||||
|
<hbox id="mailhopsResult" flex="2">
|
||||||
|
<image id="mailhopsResultImage" tooltiptext="Click to view the travel map of this message." width="16" height="11"/>
|
||||||
|
<hbox id="mailhopsResultText"></hbox>
|
||||||
|
</hbox>
|
||||||
|
</hbox>
|
||||||
|
</vbox>
|
||||||
|
|
||||||
|
</overlay>
|
BIN
mailhops-0.4.2.xpi
Normal file
BIN
mailhops-0.4.2.xpi
Normal file
Binary file not shown.
BIN
mailhops-pb-0.4.3.xpi
Normal file
BIN
mailhops-pb-0.4.3.xpi
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user