Wren Linux

wren-linux / extras / firefox-profiles / README.md (as plain text)

extras/firefox-profiles/

Give a website you stay logged into its own Firefox profile:

firefox --new-profile        (or: bash extras/firefox-profiles/new-profile.sh)

firefox --profiles lists the profiles you have, and `firefox --remove-profile NAME` removes one; Tab completes the options and the profile names.

It asks for a short name (e.g. bank) and the site's address, and makes:

It asks whether to keep the profile's cookies when it closes (keep: you stay logged in, the usual reason for a profile) or delete them (logged out each time; --delete-cookies).

Its window shows only the page: no tabs, address bar or bookmarks bar, and links open in the same tab. The keys still work (Alt+Left back, Alt+Right forward, F5 reload, Ctrl+W close). To keep Firefox's toolbars for a profile, make it with --show-toolbars at the end.

It needs the sandboxed Firefox set up first, and offers to do that.

Or in one go: bash extras/firefox-profiles/new-profile.sh bank https://mybank.example.

Why it's useful

A browser profile is a separate compartment. Sites in one profile can't see the cookies, logins or stored data of another, so:

Each profile runs as its own Firefox, as its own user, so they can be open side by side. Pass an address to open it in that profile: bank https://mybank.example/statements.

Good candidates: banking, email, crypto exchanges, shopping, a Google or work account, social media. Sites you don't log into don't need one.

What each user is, and what it shares

Profiles made by an earlier version of this script (in your own Firefox, as you) keep working; --remove NAME still removes them as before.

Fast JavaScript

Wren Linux turns Firefox's JavaScript JIT off in every profile (see parts/firefox-hardening.sh): JavaScript runs slower, but most serious browser exploits target the JIT. Heavy web apps such as webmail, online office suites or chat may feel sluggish without it. Answer yes to "Fast JavaScript for this site?" (or add --fast-js) to turn it back on for that one profile only.

Removing one

bash extras/firefox-profiles/new-profile.sh --remove bank removes the bank command (or firefox-bank, from an older version), the permission to run it and its settings file, then asks whether to delete the profile's logins and its user too. Say no and they are kept (the user stays locked) until you remove them. Files it downloaded stay in ~/Downloads/bank.

Files

Each profile's settings are in its user.js, written at every start from /etc/wren/firefox-profiles/NAME.conf. Profiles live in /var/lib/wren-fx/NAME/profile.