Skip to content

Commit b865eca

Browse files
committed
[Stack-Exchange] Add mixedcontent rule for search
1 parent ab1ae90 commit b865eca

File tree

2 files changed

+92
-2
lines changed

2 files changed

+92
-2
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!--
2+
Nonfunctional domains:
3+
4+
- chat.stackexchange.com (Mixed content)
5+
- meta.*.stackexchange.com (cert: *.stackexchange.com)
6+
7+
8+
Fully covered domains:
9+
10+
- *.stackexchange.com
11+
12+
As of Dec., 2013, stackexchange has a cert valid for:
13+
- *.stackexchange.com
14+
- stackexchange.com
15+
- meta.stackexchange.com
16+
- *.meta.stackexchange.com
17+
- *.stackoverflow.com
18+
- stackoverflow.com
19+
- serverfault.com
20+
- stackauth.com
21+
- sstatic.net
22+
- meta.serverfault.com
23+
- superuser.com
24+
- meta.superuser.com
25+
- stackapps.com
26+
- openid.stackauth.com
27+
28+
-->
29+
<ruleset name="Stack Exchange (partial)">
30+
31+
<target host="askubuntu.com" />
32+
<target host="www.askubuntu.com" />
33+
<target host="blogoverflow.com" />
34+
<target host="www.blogoverflow.com" />
35+
<target host="serverfault.com" />
36+
<target host="*.serverfault.com" />
37+
<target host="sstatic.net" />
38+
<target host="cdn.sstatic.net" />
39+
<target host="or.cdn.sstatic.net" />
40+
<target host="stackexchange.com" />
41+
<target host="*.stackexchange.com" />
42+
<target host="stackoverflow.com" />
43+
<target host="*.stackoverflow.com" />
44+
<target host="app.stacktack.com" />
45+
<target host="superuser.com" />
46+
<target host="*.superuser.com" />
47+
<target host="stackapps.com" />
48+
<target host="www.stackapps.com" />
49+
<exclusion pattern="^http://chat\.stackexchange\.com/" />
50+
<exclusion pattern="^http://(\w+\.)?stackexchange\.com/search\?" />
51+
52+
<rule from="^https?://(?:www\.)?(stackexchange|askubuntu|serverfault|superuser)\.com/favicon\.ico"
53+
to="https://cdn.sstatic.net/$1/img/favicon.ico" />
54+
55+
<rule from="^https?://(?:\w+\.)?(\w+)\.stackexchange\.com/favicon\.ico"
56+
to="https://cdn.sstatic.net/$1/img/favicon.ico" />
57+
58+
<rule from="^https?://(?:www\.)?blogoverflow\.com/$"
59+
to="https://stackexchange.com/blogs" />
60+
61+
<rule from="^http://(\w+\.)?stackexchange\.com/"
62+
to="https://$1stackexchange.com/" />
63+
64+
<rule from="^https?://(?:(or\.)?cdn\.)?sstatic\.net/"
65+
to="https://$1cdn.sstatic.net/" />
66+
67+
<rule from="^http://(www\.|meta\.|careers\.)?stackoverflow\.com/"
68+
to="https://$1stackoverflow.com/" />
69+
70+
<rule from="^http://(www\.|meta\.)?serverfault\.com/"
71+
to="https://$1serverfault.com/" />
72+
73+
<rule from="^http://(www\.|meta\.)?superuser\.com/"
74+
to="https://$1superuser.com/" />
75+
76+
<rule from="^http://(www\.)?stackapps\.com/"
77+
to="https://$1stackapps.com/" />
78+
79+
<rule from="^https?://app\.stacktack\.com/"
80+
to="https://s3.amazonaws.com/stacktackapp/" />
81+
82+
<rule from="^https?://meta\.superuser\.com/favicon\.ico"
83+
to="https://cdn.sstatic.net/superusermeta/img/favicon.ico" />
84+
85+
<rule from="^https://(\w+\.)?stackexchange\.com/search\?"
86+
to="http://$1stackexchange.com/search?"
87+
downgrade="1" />
88+
89+
<securecookie host="\.stackexchange\.com$" name=".*" />
90+
91+
</ruleset>

src/chrome/content/rules/Stack-Exchange.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
- openid.stackauth.com
2727
2828
-->
29-
<ruleset name="Stack Exchange (partial)">
29+
<ruleset name="Stack Exchange (mixed content)" platform="mixedcontent">
3030

3131
<target host="askubuntu.com" />
3232
<target host="www.askubuntu.com" />
@@ -46,7 +46,6 @@
4646
<target host="*.superuser.com" />
4747
<target host="stackapps.com" />
4848
<target host="www.stackapps.com" />
49-
<exclusion pattern="^http://chat\.stackexchange\.com/" />
5049

5150
<rule from="^https?://(?:www\.)?(stackexchange|askubuntu|serverfault|superuser)\.com/favicon\.ico"
5251
to="https://cdn.sstatic.net/$1/img/favicon.ico" />

0 commit comments

Comments
 (0)