Skip to content

Commit 9a3b121

Browse files
authored
Merge pull request #72 from lap1nou/ff-policy
Adding Firefox policy documentation
2 parents 49ad46c + 897cc1c commit 9a3b121

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

source/exegol-image/my-resources.rst

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,51 @@ To automatically:
9494
To be considered for replacing or merging, the customqueries files must be **valid** and bear the ``.json`` extension. The file names do not matter.
9595
The output will be saved into the single file ``~/.config/bloodhound/customqueries.json``.
9696

97-
98-
:code:`firefox` (addons, CA)
97+
:code:`firefox` (policy)
9998
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
99+
.. seealso::
100+
Available from version ``3.1.6`` of any exegol image.
101+
102+
A system exists to easily personalise firefox in any new exegol container.
103+
104+
The file ``/opt/my-resources/setup/firefox/policy.json.template`` can be modified to apply a Firefox policy (https://support.mozilla.org/en-US/kb/customizing-firefox-using-policiesjson), all available directives can be found here: https://mozilla.github.io/policy-templates/.
105+
106+
Once the modifications are done, the template file can be renamed to ``/opt/my-resources/setup/firefox/policy.json`` and the policy will be applied.
107+
108+
In order to install a specific addon, you can go to the Firefox addon webpage, and search for the addon GUID in the page HTML source code by searching for the JSON field ``"guid":``, for example for the Dark Reader addon, the GUID is ``addon@darkreader.org``, you can then add the extension in the JSON file:
109+
110+
.. code-block:: json
111+
"ExtensionSettings": {
112+
"addon@darkreader.org": {
113+
"installation_mode": "force_installed",
114+
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/addon@darkreader.org/latest.xpi"
115+
},
116+
}
117+
118+
To add a bookmark you can add a children to an existing folder in the ``ManagedBookmarks`` directive:
119+
.. code-block:: json
120+
{
121+
"url": "https://www.thehacker.recipes/",
122+
"name": "THR"
123+
}
124+
125+
or you can add a new folder:
126+
.. code-block:: json
127+
{
128+
"name": "New folder",
129+
"children": [
130+
{
131+
"url": "https://regex101.com/",
132+
"name": "Regex101"
133+
}
134+
]
135+
}
136+
137+
:code:`firefox` (addons, CA) (deprecated)
138+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139+
.. warning::
140+
This covers the previous method for personalizing Firefox; the current approach utilizes :ref:`policy <`firefox` (policy)>`.
141+
100142
.. seealso::
101143
Available from version ``3.0.2`` of any exegol image.
102144

0 commit comments

Comments
 (0)