HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
pyllyukko
user.js
JavaScript2015–2025
pyllyukko / user.js

user.js

user.js -- Firefox configuration hardening

32Distinct people
39Mentions
1Explicit recommenders
2.9KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

user.js -- Firefox configuration hardening

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

Mozilla is going on the completely opposite direction of what their supporters (and previous contributors) want them to go. Yes, they provide mobile browsers, plus a browser…

sdlkfgj used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

Mentioned in the same Hacker News threads. That is not proof they are substitutes.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 10:02:42 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year39 dated mentions

Observed mentions: 2015-01-27 15:44:18 UTC to 2025-09-02 18:35:17 UTC.

0510152015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 14 mentions; 2 submissions, 12 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 5 mentions; 0 submissions, 5 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2025

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC202
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC202
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC413
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC14212
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC505
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC505
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC303
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC303
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC000
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101

From the project README

An excerpt from the repository, fetched Nov 13, 2026.

Read the project’s introduction
user.js Firefox configuration hardening A user.js configuration file for Mozilla Firefox designed to harden browser settings and make it more secure. This is a default template with every possible hardening measure enforced. See the relaxed branch for a variant providing more usability Main goals Limit the possibilities to track the user through web analytics. Harden the browser against known data disclosure or code execution vulnerabilities. Limit the browser from storing anything even remotely sensitive persistently. Make sure the browser doesn't reveal too much information to shoulder surfers. Harden the browser's encryption (cipher suites, protocols). Limit possibilities to uniquely identify the browser/device using browser fingerprinting. Hopefully limit the attack surface by disabling various features. Still be usable in daily use. How to achieve this? There are several parts to all this and they are: Downloading and installing the user.js file. Reading about and applying further hardening techniques. Optional: Modifying user.js to adapt it to your web browser usage. Download Installation What does it do? Further hardening Known problems and limitations FAQ Contributing Online tests References Maintenance Download Different download methods are available: Clone using git: git clone https://github.com/pyllyukko/user.js Download and extract the ZIP file containing the latest version. Download the latest user.js directly Installation Backups Do note that these settings alter your browser behaviour quite a bit, so it is recommended to either create a completely new profile for Firefox or backup your existing profile directory before putting the user.js file in place. To enable the Profile Manager, run Firefox with command-line arguments: firefox --no-remote -P Single profile installation Copy user.js in your current user profile directory, or (recommended) to a fresh, newly created Firefox profile directory. The file should be located at: OS Path Windows 7 %APPDATA%\Mozilla\Firefox\Profiles\XXXXXXXX.your_profile_name\user.js Linux ~/.mozilla/firefox/XXXXXXXX.your_profile_name/user.js OS X ~/Library/Application Support/Firefox/Profiles/XXXXXXXX.your_profile_name Android /data/data/org.mozilla.firefox/files/mozilla/XXXXXXXX.your_profile_name and see issue #14 Sailfish OS + Alien Dalvik /opt/alien/data/data/org.mozilla.firefox/files/mozilla/XXXXXXXX.your_profile_name Windows (portable) [firefox directory]\Data\profile\ With this installation method, if you change any of user.js settings through about:config or Firefox preferences dialogs, they will be reset to the user.js defined values after you restart Firefox. This makes sure they're always back to secure defaults when starting the browser. However this prevents persistently changing settings you don't consider appropriate. Either edit user.js directly, or use the system-wide installation method described below. System-wide installation (all platforms) Generate a file suitable for system-wide installation, by running make with one of the following targets: systemwide_user.js: (the value will be used as default value for all Firefox Profiles where it is not explicitly set, it can be changed in about:config and is kept across browser sessions) locked_user.js: (the value will be used as default value on Firefox profile creation, will be locked and can't be changed) in user.js or in Firefox's about:config or settings. debian_locked.js: Debian specific. Users are not able to override preferences. See #415. Copy the produced file to the Firefox installation directory. The file should be located at: OS Path Windows C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg Linux /etc/firefox/syspref.js, for older versions: /etc/firefox/firefox.js Linux (Debian) /etc/firefox-esr/firefox-esr.js Linux (Gentoo, Archlinux) /usr/lib/firefox/mozilla.cfg, might also be /usr/lib32/ or /usr/lib64/ OS X /Applications/Firefox.app/Contents/Resources/mozilla.cfg Additional installation steps for Windows / OS X / Gentoo / Archlinux Create local-settings.js in Firefox installation directory, with the following contents: pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); This file should be located at: OS Path Windows C:\Program Files (x86)\Mozilla Firefox\defaults\pref\ OS X /Applications/Firefox.app/Contents/Resources/defaults/pref Linux (Gentoo, Archlinux) /usr/lib/firefox/defaults/pref/, might also be /usr/lib32/ or /usr/lib64/ If mozilla.cfg still fails to load, you must add a blank comment to the top of mozilla.cfg like so: // Additional settings (policies) Not all Firefox settings can be changed through user.js - some must be set in a separate policies.json file [1]. These policies apply system-wide. To install policies.json from this repository, simply copy it to the appropriate directory (create it if it does not exist): OS Path Windows C:\Program Files (x86)\Mozilla Firefox\distribution\ OS X /Applications/Firefox.app/distribution\ Linux (Debian) /etc/firefox-esr/policies/ Note that JSON does not support comments, hence settings are documented in custom *_comment keys. Mozilla maintains a list of available policies: [1] [2](https://github.com/mozilla/policy-templates). The Enterprise Policy Generator add-on can be used to generate policies.json files from a graphical interface. Updating using git For any of the above methods, you can keep your browser's user.js with the latest version available here: Clone the repository, and create a symbolic link from the appropriate location to the user.js file in the repository. Just run git pull in the repository when you want to update, then restart Firefox: cd ~/.mozilla/firefox git clone 'https://github.com/pyllyukko/user.js.git' cd XXXXXXXX.your_profile_name ln -s ${HOME}/.mozilla/firefox/user.js/user.js user.js Verifying Verify that the settings are effective from about:support (check the "Import
Read the full README on GitHub

What Hacker News says

2 sources

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.