You can't use user.js as a regular dotfile such as .emacs, .vimrc or .muttrc. That is, once you set an option you need to manually unset it. I wished they introduced a more sane mechanism.
Besides, there is no way to programmatically declare you want to use some addons.
IMHO, all this makes maintaining relatively complex user configurations very costly.
What I did was created a fork, ie https://github.com/dngray/ghacks-user.js/tree/fx-desktop
Then I added it as a submodule, ie "yadm submodule add ..." as they mention here https://stackoverflow.com/a/18797720
Yadm allows for a bootstrap[0], so I simply do:
ln -sf ~/.config/firefox/chrome/userChrome.css ~/.mozilla/firefox/$FIREFOX_PROFILE.default/chrome/userChrome.css
git --git-dir=/home/{{ YADM_USER }}/.config/firefox/ghacks-user.js/.git --work-tree=/home/{{ YADM_USER }}/.config/firefox/ghacks-user.js checkout fx-desktop
cp ~/.config/firefox/ghacks-user.js/user.js ~/.mozilla/firefox/$FIREFOX_PROFILE.default/user.js
Note the Jinja2[1] syntax there.[0]: https://yadm.io/docs/bootstrap [1]: https://yadm.io/docs/alternates
Options that can be set only for the duration of the current session?
That's built in to Firefox already, just go to privacy settings and set it to work in all windows.
> user agent spoofer
Same. privacy.resistFingerprinting will set the UA to something like the latest stable Firefox on Windows.
> https stuff
Is it that necessary anymore? The HSTS Preload list covers the big and important sites, and most links you see are https already.
ha, yes, it's hard to keep track of all these little modules sometimes.
decentraleyes caches bundles (like jquery) from cdn's so the cdn's can't track you as easily.
If you look at their website https://www.torproject.org they refer to it as "Tor Browser".
The only privacy extensions I use are cookie autodelete, decentraleyes, and ublock origin with default settings (the super private settings broke more websites than not, and I gave up making dozens of exceptions), and google and FB containers.
I'm considering dropping google container too, very annoying clicking a link opens a tab in the default container and closes the google one, so I have to shift cmd tab through all my recently closed tabs or dig through history instead of hitting back to return to the results.
It's like either you let your guard down or make navigating around the web insufferable.
However what bothers me about privacy add-ons is that each one that I install is giving permissions in my browser to another person. It would be better if there was a single add-on that was audited by someone trustworthy.
A single all-in-one add-on could also work on making each of its users fingerprint the same, which is something that can't happen when each person is using a different combination of privacy enhancements.
I've not yet tried it, but I think user.js might be helpful for this: http://kb.mozillazine.org/User.js_file
If you use Windows, you can use local group policy (if you're not part of a domain) and it's not too difficult to export/import for new machines.
I rather like Clean URLs (seems more maintained) and can pull a set of rules (regxp) from https://gitlab.com/KevinRoebert/ClearUrls/raw/master/data/da...
* add blocker (say ublock)
* js disabler (noscript)
* https stuff
* anti tracker
* url cleaner
* user agent spoofer
* cookie cleaner
* whatever decentraleyes does
* enable the right settings in about:config
* …?
All the extensions are there already, but it would guarantee them working well together and you wouldn't have to look for each extension and wonder if it's actually the one you want, but just install "the one".