-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathmain.html
More file actions
245 lines (236 loc) · 17.5 KB
/
main.html
File metadata and controls
245 lines (236 loc) · 17.5 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{% load static i18n %}
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>{% trans "Firefox Profilemaker" %}</title>
<link rel="stylesheet" href="{% static 'main.css' %}">
</head>
<body {% if "theme" in request.COOKIES %} class="{{ request.COOKIES.theme }}-colors" {% else %} class="light-colors" {% endif %}>
<span id="darkmode-toggle" title="{% trans 'Toggle dark mode' %}">
<svg height="25" viewBox="-12 0 448 448.04455" width="25">
<path d="m224.023438 448.03125c85.714843.902344 164.011718-48.488281 200.117187-126.230469-22.722656 9.914063-47.332031 14.769531-72.117187 14.230469-97.15625-.109375-175.890626-78.84375-176-176 .972656-65.71875 37.234374-125.832031 94.910156-157.351562-15.554688-1.980469-31.230469-2.867188-46.910156-2.648438-123.714844 0-224.0000005 100.289062-224.0000005 224 0 123.714844 100.2851565 224 224.0000005 224zm0 0"/>
</svg>
</span>
<div class="container">
<div class="col-navbar">
<nav class="navbar">
<ul class="nav nav-pills">
<li id="navstart" {%if active_profile %} class="valid" {% endif %}>
<a href="#start" data-toggle="tab">
{% trans "Start" %}
<svg viewBox="0 0 24 24">
<line x1="12" y1="13" x2="12" y2="24" stroke="black" stroke-width="1" />
<circle class="progress-out" cx="12" cy="12" r="4"fill="white" stroke="black" stroke-width="1"/>
<circle class="progress-in" cx="12" cy="12" r="3"fill="none" stroke="white" stroke-width="1"/>
</svg>
</a>
</li>
{% for form in forms %}
<li class="{% if form.is_valid %}valid{% endif %}">
<a href="#{{ form.id }}" data-toggle="tab">
{{ form.name }}
<svg viewBox="0 0 24 24">
<line x1="12" y1="0" x2="12" y2="24" stroke="black" stroke-width="1" />
<circle class="progress-out" cx="12" cy="12" r="4"fill="none" stroke="black" stroke-width="1"/>
<circle class="progress-in" cx="12" cy="12" r="3"fill="none" stroke="white" stroke-width="1"/>
</svg>
</a>
</li>
{% endfor %}
<li class="{% if finished %}valid{% endif %}">
<a href="#finish" data-toggle="tab">
{% trans "Finish" %}
<svg viewBox="0 0 24 24">
<line x1="12" y1="0" x2="12" y2="11" stroke="black" stroke-width="1" />
<circle class="progress-out" cx="12" cy="12" r="4"fill="none" stroke="black" stroke-width="1"/>
<circle class="progress-in" cx="12" cy="12" r="3"fill="none" stroke="white" stroke-width="1"/>
</svg>
</a>
</li>
<li>
<a href="#contribute">
{% trans "Contribute & help" %}
<svg viewBox="-10 -10 44 44">
<path d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" />
</svg>
</a>
</li>
</ul>
</nav>
</div>
<div class="col-formcontent">
<div id="start" class="tab-pane" style="padding-top: 2ex">
<h1>{% trans "Firefox Profilemaker" %}</h1>
{% blocktrans %}
Welcome to the Firefox Profilemaker!
<p>
This tool will help you to create a Firefox profile with the defaults you like.
<p>
You select which features you want to enable and disable and in the end
you get a download link for a zip-file with your profile template.
You can for example disable some functions, which send data to Mozilla and Google,
or disable several annoying Firefox functions like Mozilla Hello or the Pocket integration.
<p>
Each Setting has a short explanation and for the non obvious settings links to resources
describing the feature and the possible problems with it.
<p>
{% endblocktrans %}
<form action="#start" method="post" class="form">
<select id="profile" name="profile">
{% for profile in profiles %}
<option value="{{ profile.0 }}" {% if profile.0 == active_profile %}selected{% endif %}> {{ profile.1 }}</option>
{% endfor %}
</select>
<button type="submit" class="btn btn-primary">
{% trans "Start" %}
</button>
{% csrf_token %}
</form>
</div>
{% for form in forms %}
<div id="{{ form.id }}" class="tab-pane fade" style="padding-top: 2ex">
<h1>{{ form.name }}</h1>
<form action="#{{ form.id }}" method="post" class="form">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="btn" name="save">
<svg viewBox="0 0 16 16">
<circle cx="8" cy="8" r="4"fill="white" stroke="white" stroke-width="1"/>
<circle cx="8" cy="8" r="3"fill="none" stroke="var(--neutral-dark)" stroke-width="1"/>
</svg>
{% trans "Save" %}
</button>
<button type="submit" class="btn btn-primary" name="next" value="{{ form.next }}">
<svg viewBox="0 0 18 18" fill="white">
<path d="M6.61 11.89L3.5 8.78 2.44 9.84 6.61 14l8.95-8.95L14.5 4z"/>
</svg>
{% trans "Save & next" %}
</button>
</form>
</div>
{% endfor %}
<div id="finish" class="tab-pane fade" style="padding-top: 2ex">
<h1>{% trans "Download" %}</h1>
{% if not finished %}
<div class="info" role="alert">
{% trans 'You did not finish all questions. You still can download the profile, but there are more options available.' %}
</div>
<p>
{% endif %}
{% blocktrans %}
There are four types of downloads:
<dl>
<dt>profile.zip:</dt>
<dd>Unzip the file into a fresh profile folder to create a profile with the chosen defaults.</dd>
<dt>enterprise_policy.zip:</dt>
<dd>Unzip this in the Firefox <b>installation</b> folder, to reset the defaults every time Firefox starts.</dd>
<dt>prefs.js:</dt>
<dd>Preferences file, that can be placed in the Firefox profile folder or appended to existing preferences.</dd>
<dt>addons.zip:</dt>
<dd>An archive that only contains the chosen addons.</dd>
</dl>
{% endblocktrans %}
<div class="downloads">
<a href="{% url 'download' 'profile.zip' %}" class="btn btn-primary tight">
<svg viewBox="0 0 24 24" fill="white" width="18" height="18">
<path d="M14,17H12V15H10V13H12V15H14M14,9H12V11H14V13H12V11H10V9H12V7H10V5H12V7H14M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" />
</svg>
{% trans "Download profile.zip" %}
</a>
<a href="{% url 'download' 'enterprise_policy.zip' %}" class="btn btn-primary tight">
<svg viewBox="0 0 24 24" fill="white" width="18" height="18">
<path d="M14,17H12V15H10V13H12V15H14M14,9H12V11H14V13H12V11H10V9H12V7H10V5H12V7H14M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" />
</svg>
{% trans "Download enterprise_policy.zip" %}
</a>
<br />
<a href="{% url 'download' 'prefs.js' %}" class="btn btn-primary tight">
<svg viewBox="0 0 24 24" fill="white" width="18" height="18">
<path d="M3,3H21V21H3V3M7.73,18.04C8.13,18.89 8.92,19.59 10.27,19.59C11.77,19.59 12.8,18.79 12.8,17.04V11.26H11.1V17C11.1,17.86 10.75,18.08 10.2,18.08C9.62,18.08 9.38,17.68 9.11,17.21L7.73,18.04M13.71,17.86C14.21,18.84 15.22,19.59 16.8,19.59C18.4,19.59 19.6,18.76 19.6,17.23C19.6,15.82 18.79,15.19 17.35,14.57L16.93,14.39C16.2,14.08 15.89,13.87 15.89,13.37C15.89,12.96 16.2,12.64 16.7,12.64C17.18,12.64 17.5,12.85 17.79,13.37L19.1,12.5C18.55,11.54 17.77,11.17 16.7,11.17C15.19,11.17 14.22,12.13 14.22,13.4C14.22,14.78 15.03,15.43 16.25,15.95L16.67,16.13C17.45,16.47 17.91,16.68 17.91,17.26C17.91,17.74 17.46,18.09 16.76,18.09C15.93,18.09 15.45,17.66 15.09,17.06L13.71,17.86Z"/>
</svg>
{% trans "Download only prefs.js" %}
</a>
<a href="{% url 'download' 'prefs.js.txt' %}" class="btn btn-primary tight">
<svg viewBox="0 0 24 24" fill="white" width="18" height="18">
<path d="M9.27 7.94C9.27 7.94 9.27 7.94 9.27 7.94M6.85 6.74C6.86 6.74 6.86 6.74 6.85 6.74M21.28 8.6C20.85 7.55 19.96 6.42 19.27 6.06C19.83 7.17 20.16 8.28 20.29 9.1L20.29 9.12C19.16 6.3 17.24 5.16 15.67 2.68C15.59 2.56 15.5 2.43 15.43 2.3C15.39 2.23 15.36 2.16 15.32 2.09C15.26 1.96 15.2 1.83 15.17 1.69C15.17 1.68 15.16 1.67 15.15 1.67H15.13L15.12 1.67L15.12 1.67L15.12 1.67C12.9 2.97 11.97 5.26 11.74 6.71C11.05 6.75 10.37 6.92 9.75 7.22C9.63 7.27 9.58 7.41 9.62 7.53C9.67 7.67 9.83 7.74 9.96 7.68C10.5 7.42 11.1 7.27 11.7 7.23L11.75 7.23C11.83 7.22 11.92 7.22 12 7.22C12.5 7.21 12.97 7.28 13.44 7.42L13.5 7.44C13.6 7.46 13.67 7.5 13.75 7.5C13.8 7.54 13.86 7.56 13.91 7.58L14.05 7.64C14.12 7.67 14.19 7.7 14.25 7.73C14.28 7.75 14.31 7.76 14.34 7.78C14.41 7.82 14.5 7.85 14.54 7.89C14.58 7.91 14.62 7.94 14.66 7.96C15.39 8.41 16 9.03 16.41 9.77C15.88 9.4 14.92 9.03 14 9.19C17.6 11 16.63 17.19 11.64 16.95C11.2 16.94 10.76 16.85 10.34 16.7C10.24 16.67 10.14 16.63 10.05 16.58C10 16.56 9.93 16.53 9.88 16.5C8.65 15.87 7.64 14.68 7.5 13.23C7.5 13.23 8 11.5 10.83 11.5C11.14 11.5 12 10.64 12.03 10.4C12.03 10.31 10.29 9.62 9.61 8.95C9.24 8.59 9.07 8.42 8.92 8.29C8.84 8.22 8.75 8.16 8.66 8.1C8.43 7.3 8.42 6.45 8.63 5.65C7.6 6.12 6.8 6.86 6.22 7.5H6.22C5.82 7 5.85 5.35 5.87 5C5.86 5 5.57 5.16 5.54 5.18C5.19 5.43 4.86 5.71 4.56 6C4.21 6.37 3.9 6.74 3.62 7.14C3 8.05 2.5 9.09 2.28 10.18C2.28 10.19 2.18 10.59 2.11 11.1L2.08 11.33C2.06 11.5 2.04 11.65 2 11.91L2 11.94L2 12.27L2 12.32C2 17.85 6.5 22.33 12 22.33C16.97 22.33 21.08 18.74 21.88 14C21.9 13.89 21.91 13.76 21.93 13.63C22.13 11.91 21.91 10.11 21.28 8.6Z"/>
</svg>
{% trans "Open prefs.js in the browser" %}
</a>
<br />
<a href="{% url 'download' 'addons.zip' %}" class="btn btn-primary tight">
<svg viewBox="0 0 24 24" fill="white" width="18" height="18">
<path d="M14,17H12V15H10V13H12V15H14M14,9H12V11H14V13H12V11H10V9H12V7H10V5H12V7H14M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" />
</svg>
{% trans "Download only addons.zip" %}
</a>
</div>
<br />
{% trans "When you download only the addons.zip, you need to copy the <code>user_pref(\"extensions.autoDisableScopes\", 14);</code> line into your prefs.js, otherwise firefox won't install the addons." %}
<form action="#" method="post" class="form">
{% csrf_token %}
<button type="submit" class="btn btn-warning" name="reset" value="reset">
<svg viewBox="0 0 24 24" fill="white" width="18" height="18">
<path d="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z" />
</svg>
{% trans "Start over again" %}
</button>
</form>
<h3>{% trans "Installing" %}</h3>
<ul>
<li>{% trans "Optional: add a new profile to keep the old one" %}</li>
<ul>
<li>{% trans "Run" %} <code>firefox -no-remote -ProfileManager</code></li>
<li>{% trans "Create a new profile" %}</li>
</ul>
{% blocktrans %}
<li>Type <code>about:support</code> into the url bar.</li>
<li>Press the open profile folder button.</li>
<li>Quit Firefox.</li>
<li>Delete everything from the new profile (you will lose all existing data from the profile).</li>
<li>Unzip the <code>profile.zip</code> archive into the folder.</li>
<li>If Existent: Unzip the <code>enterprise_policy.zip</code> archive to Firefox installation directory.</li>
<li>Start Firefox again. If you made a new profile, you can use it with <code>firefox -no-remote -P profilename</code>.</li>
<li>Open the addon manager and update the extensions.</li>
{% endblocktrans %}
</ul>
<h3>{% trans "Preview" %}</h3>
{% if prefs_js %}
prefs.js:
<pre>{{ prefs_js }}</pre>
{% endif %}
{% if enterprise_policy %}
policies.json:
<pre>{{ enterprise_policy }}</pre>
{% endif %}
{% if filenames %}
{% trans "Files:" %}
<pre>{% for filename in filenames %}{{ filename }}<br />{% endfor %}</pre>
{% endif %}
</div>
<div id="contribute" class="tab-pane">
<h1>{% trans "Contribute" %}</h1>
<a class="btn btn-primary" href="https://github.com/allo-/firefox-profilemaker">
<svg viewBox="0 0 24 24" fill="white">
<path d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" />
</svg>
{% trans "Fork me on GitHub" %}
</a>
{% blocktrans %}
<h2>Help us</h2>
<span>We do not need money, but we can use your help to improve the site.</span>
<ul>
<li><a href="https://github.com/allo-/firefox-profilemaker/wiki/Contribute-Settings">Contribute more settings</a></li>
<li><a href="https://github.com/allo-/firefox-profilemaker/issues/89">Help to improve the website design</a></li>
<li><a href="https://github.com/allo-/firefox-profilemaker/issues/75">Help to improve the instructions</a></li>
<li><a href="https://github.com/allo-/firefox-profilemaker/issues/88">Translate the website into your language</a></li>
<li><a href="https://github.com/allo-/firefox-profilemaker">Join the project</a> and help to code the profile generator</li>
</ul>
{% endblocktrans %}
</div>
</div>
</div>
<script src="static/main.js"></script>
</body>
</html>