mobile_user.js/README.md

118 lines
4.3 KiB
Markdown
Raw Normal View History

2020-12-12 11:42:57 +00:00
# user.js | Firefox Fenix Nightly, Iceraven, Fennec F-Droid
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: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 10:00:39 +00:00
2020-12-12 11:42:57 +00:00
If you are running IcecatMobile or old Fennec (version 68) use [Quindecim user.js](https://git.nixnet.xyz/quindecim/mobile_user.js) instead.
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 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
2020-10-26 18:27:51 +00:00
### **NON ROOT METHOD**
2019-05-10 08:45:47 +00:00
2020-10-26 18:26:44 +00:00
Have a look at Non-Rooted guide from Arkenfox:
[Firefox Android](https://github.com/arkenfox/user.js/wiki/1.6-Firefox-Android#small_orange_diamond-non-rooted)
2019-05-13 17:48:18 +00:00
2020-11-04 20:47:41 +00:00
## Considerations
Some automatic connections could not be blocked so you will have to add them to your host list (root required)
firefox.settings.services.mozilla.com
2020-12-21 10:17:26 +00:00
https://bugzilla.mozilla.org/show_bug.cgi?id=1598562#c13
2021-04-02 12:49:16 +00:00
safebrowsing.googleapis.com, safebrowsing.google.com, malware-error.mozilla.com, phish-error.mozilla.com and developers.google.com (safebrowsing is active and not changeable)
2020-11-04 20:47:41 +00:00
2020-12-21 10:17:26 +00:00
https://github.com/mozilla-mobile/fenix/issues/14163
2020-11-04 20:47:41 +00:00
## Thanks
2019-05-13 17:48:18 +00:00
2020-09-19 11:40:35 +00:00
I really thank the following authors:
2019-05-10 08:45:47 +00:00
2020-11-19 20:50:01 +00:00
* [Quindecim](https://git.nixnet.xyz/quindecim/mobile_user.js) - Without him, this project could not be possible.
* [Arkenfox](https://github.com/arkenfox/user.js) - Updates.
* [gallegonovato](https://git.nixnet.xyz/gallegonovato) - For his suggestions and support.
* [v1nc](https://github.com/v1nc/) - For his user.js updater app
2020-09-21 21:23:18 +00:00
## License
GNU General Public License v3.0.
2021-02-04 10:17:22 +00:00
See `LICENSE` for more details.
## Other mirrors
https://gitlab.com/Jorgu81/user.js/tree/master/Mobile