Skip to content

Commit f415c0e

Browse files
committed
Add 25th birthday link to menu.
Simplify makexpi.sh --fast so that it can be passed as an env var. Move donate link higher in about box.
1 parent dac336f commit f415c0e

File tree

5 files changed

+31
-21
lines changed

5 files changed

+31
-21
lines changed

makexpi.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ APP_NAME=https-everywhere
1818
cd "`dirname $0`"
1919
RULESETS_SQLITE="$PWD/src/defaults/rulesets.sqlite"
2020
ANDROID_APP_ID=org.mozilla.firefox
21+
if [ "$1" == "--fast" ]; then
22+
FAST=true
23+
fi
2124

2225
[ -d pkg ] || mkdir pkg
2326

2427
# If the command line argument is a tag name, check that out and build it
25-
if [ -n "$1" ] && [ "$2" != "--no-recurse" ] && [ "$1" != "--fast" ] ; then
28+
if [ -n "$1" ] && [ "$2" != "--no-recurse" ] && [ -z "$FAST" ] ; then
2629
BRANCH=`git branch | head -n 1 | cut -d \ -f 2-`
2730
SUBDIR=checkout
2831
[ -d $SUBDIR ] || mkdir $SUBDIR
@@ -51,7 +54,7 @@ if [ -n "$1" ] && [ "$2" != "--no-recurse" ] && [ "$1" != "--fast" ] ; then
5154
exit 0
5255
fi
5356

54-
if [ "$1" != "--fast" -o ! -f "$RULESETS_SQLITE" ] ; then
57+
if [ -z "$FAST" -o ! -f "$RULESETS_SQLITE" ] ; then
5558
# This is an optimization to get the OS reading the rulesets into RAM ASAP;
5659
# it's useful on machines with slow disk seek times; doing several of these
5760
# at once allows the IO subsystem to seek more efficiently.
@@ -72,7 +75,7 @@ die() {
7275
exit 1
7376
}
7477

75-
if [ "$1" != "--fast" -a -z "$FAST" ] ; then
78+
if [ -z "$FAST" ] ; then
7679
if python2.7 ./utils/trivial-validate.py --quiet --db $RULESETS_SQLITE >&2
7780
then
7881
echo Validation of included rulesets completed. >&2
@@ -120,7 +123,7 @@ fi
120123

121124
# The name/version of the XPI we're building comes from src/install.rdf
122125
XPI_NAME="pkg/$APP_NAME-`grep em:version src/install.rdf | sed -e 's/[<>]/ /g' | cut -f3`"
123-
if [ "$1" ] && [ "$1" != "--fast" ] ; then
126+
if [ "$1" -a -z "$FAST" ] ; then
124127
XPI_NAME="$XPI_NAME"
125128
else
126129
# During development, generate packages named with the short hash of HEAD.

src/chrome/content/about.xul

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@
1919
<label style="text-align:center; font-weight:bold; font-size:22px;">&https-everywhere.about.ext_name;</label>
2020
<label style="text-align:center; font-size:18px; margin-bottom:10px;">&https-everywhere.about.ext_description;</label>
2121

22+
<label style="font-weight:bold; margin-top:10px;">
23+
&https-everywhere.about.contribute;
24+
<label id="donate link"
25+
value="&https-everywhere.about.donate_tor;"
26+
style="color: blue; cursor:hand; text-decoration:underline; font-style:bold"
27+
onmouseover="event.target.style.cursor='pointer'"
28+
onmouseout="event.target.style.cursor='default'"
29+
onclick="window_opener('https://www.torproject.org/donate/donate.html.en')"/>
30+
&https-everywhere.about.or;
31+
<label id="donate link2"
32+
value="&https-everywhere.about.donate_eff;"
33+
style="color: blue; cursor:hand; text-decoration:underline; font-style:bold"
34+
onmouseover="event.target.style.cursor='pointer'"
35+
onmouseout="event.target.style.cursor='default'"
36+
onclick="window_opener('https://www.eff.org/donate')"/>
37+
</label>
38+
2239
<groupbox>
2340
<caption label="&https-everywhere.about.version;" />
2441
<label>5.0.5</label>
@@ -51,22 +68,5 @@
5168
from NoScript, by Giorgio Maone and others. We are grateful for their
5269
excellent work!</label>
5370
</groupbox>
54-
55-
<label style="font-weight:bold; margin-top:10px;">
56-
&https-everywhere.about.contribute;
57-
<label id="donate link"
58-
value="&https-everywhere.about.donate_tor;"
59-
style="color: blue; cursor:hand; text-decoration:underline; font-style:bold"
60-
onmouseover="event.target.style.cursor='pointer'"
61-
onmouseout="event.target.style.cursor='default'"
62-
onclick="window_opener('https://www.torproject.org/donate/donate.html.en')"/>
63-
&https-everywhere.about.or;
64-
<label id="donate link2"
65-
value="&https-everywhere.about.donate_eff;"
66-
style="color: blue; cursor:hand; text-decoration:underline; font-style:bold"
67-
onmouseover="event.target.style.cursor='pointer'"
68-
onmouseout="event.target.style.cursor='default'"
69-
onclick="window_opener('https://www.eff.org/donate')"/>
70-
</label>
7171
</vbox>
7272
</dialog>

src/chrome/content/toolbar_button.xul

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
<menuseparator />
5252
<menuitem label="&https-everywhere.menu.observatory;" command="https-everywhere-menuitem-observatory" />
5353
<menuitem label="&https-everywhere.menu.about;" command="https-everywhere-menuitem-about" />
54+
<menuitem type="checkbox" class="birthday menuitem-iconic" image="chrome://https-everywhere/skin/eff-16.png"
55+
label="Happy 25th birthday, EFF!" command="https-everywhere-menuitem-birthday" />
5456
</menupopup>
5557
</toolbarbutton>
5658
</toolbarpalette>
@@ -61,6 +63,8 @@
6163
oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/preferences.xul', 'chrome,centerscreen,resizable=yes');" />
6264
<command id="https-everywhere-menuitem-about"
6365
oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/about.xul');" />
66+
<command id="https-everywhere-menuitem-birthday"
67+
oncommand="open_in_tab('https://www.eff.org/EFF25');" />
6468
<command id="https-everywhere-menuitem-observatory"
6569
oncommand="HTTPSEverywhere.chrome_opener('chrome://https-everywhere/content/observatory-preferences.xul', 'chrome,centerscreen,resizable=yes');" />
6670
<command id="https-everywhere-menuitem-donate-eff"

src/chrome/skin/eff-16.png

346 Bytes
Loading

src/chrome/skin/https-everywhere.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ toolbar[iconsize="small"] #https-everywhere-button[status="disabled"] > .https-e
7575
color: #999999;
7676
font-weight: bold;
7777
}
78+
#https-everywhere-button menuitem.birthday label {
79+
font-weight: bold;
80+
}

0 commit comments

Comments
 (0)