forked from EFForg/https-everywhere
-
Notifications
You must be signed in to change notification settings - Fork 4
/
observatory-popup.xul
61 lines (58 loc) · 2.4 KB
/
observatory-popup.xul
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://https-everywhere/locale/ssl-observatory.dtd">
<window id="ssl-observatory-dialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="&ssl-observatory.popup.title;"
width="600"
height="520"
align="center"
onload="document.getElementById('ask-me-later').focus()"
>
<script type="application/x-javascript" src="observatory-xul.js" />
<image src="chrome://https-everywhere/skin/https-everywhere-banner.png" />
<label style="padding:25px;">&ssl-observatory.popup.text;</label>
<commandgroup>
<command id="enable" oncommand="enable_observatory() ; popup_done()" />
<command id="nope" oncommand="disable_observatory() ; popup_done()" />
<command id="later" oncommand="window.close()" />
<command id="more-info"
oncommand='popup_done() ;
window.open("chrome://https-everywhere/content/observatory-preferences.xul","obsprefs",
"chrome, centerscreen")'/>
</commandgroup>
<vbox flex="1">
<spacer flex="5" />
<separator class="thin"/>
<hbox>
<spacer flex="2" />
<button label="&ssl-observatory.popup.yes;" tabindex="2" accesskey="y"
command='enable'/>
<spacer flex="1" />
<button label="&ssl-observatory.popup.no;" tabindex="3" accesskey="n"
command='nope'/>
<spacer flex="2" />
</hbox>
<separator class="thin"/>
<spacer flex="10" />
<hbox>
<spacer flex="2" />
<button label="&ssl-observatory.popup.details;" tabindex="4" accesskey="D"
command='more-info'/>
<spacer flex="1" />
<button id="ask-me-later" label="&ssl-observatory.popup.later;"
tabindex="1" accesskey="A" command='later'/>
<spacer flex="2" />
</hbox>
<separator class="thin"/>
<spacer flex="1" />
</vbox>
<!--
<hbox style="padding-top:10px;">
<label class="text-link" href="https://www.eff.org/" tabindex="3" value="&ssl-observatory.popup.details;" />
<spacer flex="1" />
<button label="&ssl-observatory.popup.later;" id="ask-me-later" tabindex="0" style="font-size:0.8em;" accesskey="l"
oncommand="doCancel()"/>-
</hbox>-->
</window>