Skip to content

Commit 3d3f29e

Browse files
committed
Misc fixes.
Formatting in rulesets.html (anchors go inside headings). Makexpi package name corrections. Disable HBO and HuffPo.
1 parent ac11f2e commit 3d3f29e

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

docs/rulesets.html

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
the extension, this guide will explain how to add that site.
1515
</p>
1616

17-
<a name="rulesets" href="#rulesets">
18-
<h4>Rulesets</h4>
19-
</a>
17+
<h4><a name="rulesets" href="#rulesets"
18+
>Rulesets</a>
19+
</h4>
2020

2121
<p>
2222
A <tt>ruleset</tt> is an <a
@@ -59,9 +59,9 @@ <h4>Rulesets</h4>
5959
according the the <tt>to</tt> attribute of the rule.
6060
</p>
6161

62-
<a name="wildcard-targets" href="#wildcard-targets">
63-
<h4>Wildcard Targets</h4>
64-
</a>
62+
<h4><a name="wildcard-targets" href="#wildcard-targets"
63+
>Wildcard Targets</a>
64+
</h4>
6565

6666
<p>
6767
To cover all of a domain&apos;s subdomains, you may want to specify
@@ -80,9 +80,10 @@ <h4>Wildcard Targets</h4>
8080
you should list each host as a separate target.
8181
</p>
8282

83-
<a name="rules-and-regular-expressions" href="#rules-and-regular-expressions">
84-
<h4>Rules and Regular Expressions</h4>
85-
</a>
83+
<h4>
84+
<a name="rules-and-regular-expressions" href="#rules-and-regular-expressions"
85+
>Rules and Regular Expressions</a>
86+
</h4>
8687

8788
<p>
8889
The <tt>rule</tt> tags do the actual rewriting work. The <tt>from</tt> attribute of
@@ -151,9 +152,9 @@ <h4>Rules and Regular Expressions</h4>
151152
rulesets will still be tried.
152153
</p>
153154

154-
<a name="style" href="#style">
155-
<h4>Style Guide</h4>
156-
</a>
155+
<h4><a name="style" href="#style"
156+
>Style Guide</a>
157+
</h4>
157158

158159
<p>
159160
There are many different ways you can write a ruleset, or regular expression
@@ -165,9 +166,9 @@ <h4>Style Guide</h4>
165166
testing</a> less cumbersome.
166167
</p>
167168

168-
<a name="secure-cookies" href="#secure-cookies">
169-
<h4>Secure Cookies</h4>
170-
</a>
169+
<h4><a name="secure-cookies" href="#secure-cookies"
170+
>Secure Cookies</a>
171+
</h4>
171172

172173
<p>
173174
Many HTTPS websites fail to correctly set the <a
@@ -191,9 +192,9 @@ <h4>Secure Cookies</h4>
191192
name made by stripping the leading dot.
192193
</p>
193194

194-
<a name="testing" href="#testing">
195-
<h4>Testing</h4>
196-
</a>
195+
<h4><a name="testing" href="#testing"
196+
>Testing</a>
197+
</h4>
197198

198199
<p>
199200
We use an <a href="https://github.com/hiviah/https-everywhere-checker">automated
@@ -231,9 +232,10 @@ <h4>Testing</h4>
231232
is a public and publicly-archived mailing list.
232233
</p>
233234

234-
<a name="make-trivial" href="#make-trivial">
235-
<h4>make-trivial-rule</h4>
236-
</a>
235+
<h4><a name="make-trivial" href="#make-trivial"
236+
>make-trivial-rule</a>
237+
</h4>
238+
237239
<p>
238240
As an alternative to writing rules by hand, there are scripts you
239241
can run from a Unix command line to automate the process of creating
@@ -242,9 +244,10 @@ <h4>make-trivial-rule</h4>
242244
repository and are described in <a href="https://www.eff.org/https-everywhere/development">our development
243245
documentation</a>.
244246

245-
<a name="default-off" href="#default-off">
246-
<h4>Disabling a ruleset by default</h4>
247-
</a>
247+
<h4><a name="default-off" href="#default-off"
248+
>Disabling a ruleset by default</a>
249+
</h4>
250+
248251
<p>
249252
Sometimes rulesets are useful or interesting, but cause problems
250253
that make them unsuitable for being enabled by default in everyone&apos;s
@@ -265,9 +268,9 @@ <h4>Disabling a ruleset by default</h4>
265268
file.
266269
</p>
267270

268-
<a name="mixed-content" href="#mixed-content">
269-
<h4>Mixed Content Blocking (MCB)</h4>
270-
</a>
271+
<h4><a name="mixed-content" href="#mixed-content"
272+
>Mixed Content Blocking (MCB)</a>
273+
</h4>
271274

272275
<p>
273276
Some rulesets may trigger active mixed content (i.e. scripts loaded over HTTP
@@ -285,9 +288,9 @@ <h4>Mixed Content Blocking (MCB)</h4>
285288
attribute to the ruleset element.
286289
</p>
287290

288-
<a name="downgrades" href="#downgrades">
289-
<h4>HTTPS-&gt;HTTP downgrade rules</h4>
290-
</a>
291+
<h4><a name="downgrades" href="#downgrades"
292+
>HTTPS-&gt;HTTP downgrade rules</a>
293+
</h4>
291294

292295
<p>
293296
By default, HTTPS Everywhere will refuse to allow rules that

makexpi.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,9 @@ if [ -n "$1" ] && [ "$2" != "--no-recurse" ] && [ "$1" != "--fast" ] ; then
4444

4545
# Now escape from the horrible mess we've made
4646
cd ..
47-
XPI_NAME="$APP_NAME-$1"
48-
# In this mad recursive situation, sometimes old buggy build scripts make
49-
# the xpi as ./pkg :(
50-
if ! cp $SUBDIR/pkg/$XPI_NAME pkg/ ; then
51-
echo Recovering from hair-raising recursion:
52-
echo cp $SUBDIR/pkg pkg/$XPI_NAME
53-
cp $SUBDIR/pkg pkg/$XPI_NAME
54-
fi
47+
XPI_NAME="$APP_NAME-$1"
48+
cp $SUBDIR/pkg/$XPI_NAME.xpi pkg/
49+
cp $SUBDIR/pkg/$XPI_NAME-amo.xpi pkg/
5550
rm -rf $SUBDIR
5651
exit 0
5752
fi

src/chrome/content/rules/HBO.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!--
2+
Disabled per https://github.com/EFForg/https-everywhere/issues/1393
23
CDN buckets:
34
45
- i.lv3.hbo.com.c.footprint.net
@@ -9,7 +10,7 @@
910
- i.lv3 (times out; data are also on www)
1011
1112
-->
12-
<ruleset name="HBO">
13+
<ruleset name="HBO" default_off="Breaks videos">
1314

1415
<target host="hbo.com" />
1516
<target host="*.hbo.com" />

src/chrome/content/rules/Huffington-Post.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!--
2+
Disabled per https://github.com/EFForg/https-everywhere/issues/1387
23
For problematic rules, see Huffington-Post-mismatches.xml.
34
45
For other AOL coverage, see AOL.xml.
@@ -98,7 +99,7 @@
9899
** Unsecurable
99100
100101
-->
101-
<ruleset name="Huffington Post (partial)">
102+
<ruleset name="Huffington Post (partial)" default_off="Breaks some images">
102103

103104
<target host="huffingtonpost.com" />
104105
<target host="*.huffingtonpost.com" />

0 commit comments

Comments
 (0)