mobile_user.js/README.md

143 lines
5.1 KiB
Markdown
Raw Normal View History

2021-08-03 15:09:34 +00:00
# user.js | Firefox Fenix Nightly, Iceraven, Fennec F-Droid and Mull
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.
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
2021-08-03 15:02:13 +00:00
* [Mull](https://f-droid.org/en/packages/us.spotco.fennec_dos/) - 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
2022-01-13 14:04:59 +00:00
I would like to suggest the use of [Amaze](https://github.com/TeamAmaze/AmazeFileManager), [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.
2021-08-03 18:02:54 +00:00
- Download and install the browsers 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
2021-08-03 18:02:54 +00:00
✳️ Mull `data/data/us.spotco.fennec_dos/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
2021-12-08 19:54:36 +00:00
https://git.nixnet.services/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
2022-01-13 14:04:59 +00:00
## Installing Iceraven addons in Fennec/Mull/Firefox Nightly
2022-01-13 14:04:59 +00:00
Go to Settings, about Fennec/Mull/Firefox Nightly, tap 5 times over its logo, Debug mode will enable.
Back to Settings, the new Custom Add-on collection and add the Iceraven one:
16201230
What-I-want-on-Fenix
If you still need more of them you will have to create your own Collection:
https://www.ghacks.net/2020/10/01/you-can-now-install-any-add-on-in-firefox-nightly-for-android-but-it-is-complicated/
2020-11-04 20:47:41 +00:00
## Considerations
2022-03-02 11:04:44 +00:00
Once installed go to Settings, ETP and select Strict.
2022-01-13 14:04:59 +00:00
Some automatic connections could not be blocked so you will have to add them to your host list.
2020-11-04 20:47:41 +00:00
firefox.settings.services.mozilla.com
2020-12-21 10:17:26 +00:00
https://bugzilla.mozilla.org/show_bug.cgi?id=1598562#c13
2022-04-13 10:16:13 +00:00
content-signature-2.cdn.mozilla.net
2020-12-21 10:17:26 +00:00
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
2021-08-07 13:49:48 +00:00
## Known problems
`Some breakage?`
Try changing "network.http.referer.XOriginPolicy" from 2 to 1
`Performance loss?`
2022-01-13 14:04:59 +00:00
Not active currently, maybe in the future.
You have to change these strings from false to true:
2021-08-07 13:49:48 +00:00
javascript.options.ion
javascript.options.baselinejit
javascript.options.native_regexp
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
2021-04-02 13:05:50 +00:00
* [Arkenfox](https://github.com/arkenfox/user.js) - The majority of this user.js.
2021-07-28 18:45:01 +00:00
* [Tor Project](https://www.torproject.org) - Some Tor Browser strings.
2021-08-11 08:10:13 +00:00
* [Quindecim](https://git.nixnet.xyz/quindecim/mobile_user.js) - Initial releases, unique strings and user design.
* [LibreWolf](https://gitlab.com/librewolf-community) - Some strings.
2022-02-13 10:17:50 +00:00
* [Better-Fox](https://github.com/yokoffing/Better-Fox) - Some strings
2020-11-19 20:50:01 +00:00
* [gallegonovato](https://git.nixnet.xyz/gallegonovato) - For his suggestions and support.
2021-04-02 13:05:50 +00:00
* [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
2022-02-05 16:02:33 +00:00
https://codeberg.org/Narsil/user.js/src/branch/main/mobile