1
Fork 0
config/firefox
2024-07-16 15:09:29 -04:00
..
.gitignore rework symlinking and locations of several files 2021-11-13 17:06:05 -05:00
base_configuration.js firefox: do not offer to remember address information 2024-07-12 17:56:54 -04:00
delete_cookies.js firefox: add comments describing settings 2021-10-16 19:53:01 -04:00
disable_history.js firefox: add comments describing settings 2021-10-16 19:53:01 -04:00
preserve_session.js firefox: add comments describing settings 2021-10-16 19:53:01 -04:00
README.md firefox: add link for about:config on Android 2024-07-16 15:09:29 -04:00

Firefox

.gitignore'd

  • */ - folders whose names are +-separated concatenations of names of files in this directory (without their extensions) - these will be given user.js files constructed by concatenation of the base files, and will then be symlinked to from various Firefox profiles' user.js files
  • *.pac - proxy auto-config files - these too can be referred to in the above +-separated folder names

user.js handling (Windows-specific)

Create *.pac files containing proxy auto-config files.

Create empty directories whose names are assembled by concatenating the names of templates in this directory (without the .js or .pac extension) separated by +s.

There is a menu option in config.sh to generate (or regenerate) user.js files in these directories from their constituent templates, including adding the appropriate configuration to point to a particular *.pac file.

There is also a menu option in config.sh for creating symlinks from various Firefox profiles' user.js files to the assembled files.

Additional manual setup

For each profile:

Configuring PAC

To use an SSH tunnel as a SOCKS proxy for select domains, open a dynamic tunnel with:

$ ssh -D 8000 hostname

and use a manual proxy configuration file containing something like:

function FindProxyForURL(url, host) {
	return /(^|\.)(example\.com|example\.net)$/.test(host) ? 'SOCKS 127.0.0.1:8000' : 'DIRECT';
}

Accessing about:config on Android

chrome://geckoview/content/config.xhtml