2020-09-19 14:03:42 +00:00
# user.js | Firefox Fenix Nightly, Iceraven, Fennec F-Droid or Icecatmobile
2019-05-10 08:45:47 +00:00
2020-09-19 13:47:04 +00:00
The `user.js` file is used to configure Firefox for android in the safest and fastest way possible.
2020-09-19 12:07:26 +00:00
There are 2 versions:
2020-09-19 14:17:55 +00:00
* Default user.js for average users.
2020-09-19 14:18:34 +00:00
* Another one with less connections as possible, meaning there are not automatic addons updates. You'll have to uninstall and reinstall them (not recommended)
2019-05-10 08:45:47 +00:00
2019-05-13 17:48:18 +00:00
2020-09-19 14:44:15 +00:00
2020-09-19 14:40:41 +00:00
## Goals:
2019-05-10 08:45:47 +00:00
2020-09-19 14:17:55 +00:00
* enhance security and privacy
* improve performance
* better fingerprint possible
* reduce automatic connections
2019-05-10 08:45:47 +00:00
2020-09-19 14:40:41 +00:00
## Compatible browsers:
2019-05-13 17:48:18 +00:00
2020-09-19 13:17:49 +00:00
This `user.js` has been designed for mobile purposes and you can use it on these browsers:
2019-05-10 08:45:47 +00:00
2020-09-19 10:00:39 +00:00
* [Firefox Fenix Nightly for Android ](https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v2.fenix.nightly.latest ) - Mozilla-mobile
2020-09-19 10:11:07 +00:00
* [Iceraven browser ](https://github.com/fork-maintainers/iceraven-browser ) - Forks maintainers
2020-09-30 19:45:15 +00:00
* [Fennec F-Droid ](https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/ ) - F-Droid
2020-09-19 13:58:16 +00:00
* [Icecatmobile ](https://f-droid.org/en/packages/org.gnu.icecat/ ) - F-Droid (out of date)
2020-09-19 10:00:39 +00:00
2019-05-10 08:45:47 +00:00
2020-09-19 14:40:41 +00:00
## How to install:
2019-05-13 17:48:18 +00:00
2019-08-04 23:33:17 +00:00
### **ROOT METHOD 1** *(file manager)*
2019-05-13 17:48:18 +00:00
2020-10-23 20:46:28 +00:00
I would like to suggest the use of [Simple File Manager Pro ](https://f-droid.org/en/packages/com.simplemobiletools.filemanager.pro/ ), [Material Files ](https://f-droid.org/packages/me.zhanghai.android.files/ ) or [TWRP File Manager ](https://twrp.me/Devices/ ) before proceed.
2020-09-19 14:10:12 +00:00
- Download and install Firefox Fenix Nightly, Iceraven, Fennec F-Droid or Icecatmobile from their official websites (see above)
2020-09-19 10:11:07 +00:00
- Start the browser for the first time (offline mode/no data connections) and wait about 5 sec.
- Close it.
2019-05-13 17:48:18 +00:00
- Clone or download zip file and extract it
2020-09-19 13:49:32 +00:00
- Locate browser's installation directory similar to this:
2020-09-19 13:50:37 +00:00
✳️ Firefox Fenix Nightly `data/data/org.mozilla.fenix/files/mozilla/[xxxxxxx].default`
2020-09-19 13:50:01 +00:00
2020-09-19 13:50:37 +00:00
✳️ Iceraven `data/data/io.github.forkmaintainers.iceraven/files/mozilla/[xxxxxxx].default`
2020-09-19 13:50:01 +00:00
2020-09-30 19:43:47 +00:00
✳️ Fennec F-Droid `data/data/org.mozilla.fennec_froid/files/mozilla/[xxxxxxx].default`
2020-09-19 13:49:32 +00:00
2020-09-19 14:01:19 +00:00
✳️ Icecatmobile `data/data/org.gnu.icecat/files/mozilla/[xxxxxxx].default`
2020-09-19 13:58:16 +00:00
2020-03-01 17:45:12 +00:00
- Copy the extracted `user.js` file to the above installation directory.
- Delete `prefs.js` file inside the above directory
2020-09-19 10:13:17 +00:00
- Start the browser and test if `user.js` was applied :
2020-03-01 17:45:12 +00:00
browse to `about:config` (put it in search bar) and look if `config.applied` is `true` .
2019-05-10 08:45:47 +00:00
2020-01-17 23:00:36 +00:00
If this doesn't work I suggest you to use the **ROOT METHOD 2** below.
2019-05-10 08:45:47 +00:00
2019-08-04 23:32:46 +00:00
### **ROOT METHOD 2** *(app)*
2019-05-10 08:45:47 +00:00
2020-09-19 14:04:59 +00:00
- Download and install the browser from their official websites.
2020-01-17 23:00:36 +00:00
- Download and install [User.js Updater ](https://github.com/v1nc/user.js-updater/releases )
2020-09-19 10:13:17 +00:00
- Start the browser for the first time (offline mode/no data connections) and wait about 5 sec.
2020-09-19 11:30:02 +00:00
- Close it.
2020-01-17 23:00:36 +00:00
- Open `User.js Updater` app and grant storage permission.
2020-09-19 13:55:36 +00:00
- Choose Custom and write the following:
2020-09-19 13:58:16 +00:00
2020-09-19 14:01:19 +00:00
https://git.nixnet.xyz/Narsil/mobile_user.js/src/branch/master/user.js
2020-09-19 13:58:16 +00:00
2020-01-17 23:00:36 +00:00
- Tap `UPDATE` at the bottom and grant root permission.
2020-09-19 10:13:17 +00:00
- Start the browser and test if `user.js` was applied :
2020-03-01 17:45:12 +00:00
browse to `about:config` (put it in search bar) and look if `config.applied` is `true` .
2020-01-17 23:00:36 +00:00
- **AFWall+ USERS:** You can disable `Use Download Manager` option into `Settings` and enable data connection just to the app itself.
2019-05-10 08:45:47 +00:00
2019-05-13 17:48:18 +00:00
2020-01-29 21:27:37 +00:00
2019-05-13 17:48:18 +00:00
## Thanks:
2020-09-19 11:40:35 +00:00
I really thank the following authors:
2019-05-10 08:45:47 +00:00
2020-10-16 18:25:29 +00:00
* [Quindecim] (https://git.nixnet.xyz/quindecim/mobile_user.js) - Without him, this project could not be possible.
2020-09-19 14:47:28 +00:00
* [Arkenfox] (https://github.com/arkenfox/user.js) - Updates.
2020-09-21 21:23:18 +00:00
* [v1nc] (https://github.com/v1nc/) - For his user.js updater app
## License
GNU General Public License v3.0.
See `LICENSE` for more details.