Firefox behaving differently

Karl Auer kauer at biplane.com.au
Fri Sep 15 22:39:31 UTC 2023


On Fri, 2023-09-15 at 17:27 -0400, Little Girl wrote:
> > After I logged out I looked in the normal window
> > and yahoo showed up in the privacy settings in the
> > normal window.

The only way to get real, total separation of stored data in Firefox is
to use different profiles. Different containers might work, I haven't
looked into them as much.

This script will copy the profile specified in SRC, run Firefox with
it, then delete the copy. To use this script, create a new profile, set
it up however you want, then put its name into this script as
"profile.name". Put this script on a launch button or similar (or just
run it from a terminal). Every time you run it you will get a
completely clean copy of the source profile. You can run multiple
copies; each is completely independent of everything except the actual
Firefox executable. When you close Firefox, ALL data associated with
the profile is deleted, including the profile.

#!/bin/sh +
SRC="profile.name"
DIR="/path/to/mozilla/profiles"

# Make a random profile name
RND=`dd if=/dev/urandom status=none bs=1024 count=1 | 
     tr -cd '[:alnum:]' | fold -w8 | head -n1`
PRF="$RND.temp"

cd "$DIR"
rm -fr "$PRF"
cp -a "$SRC" "$PRF" > /dev/null 2>&1
firefox --no-remote --profile "$PRF" --new-window
rm -fr "$PRF" > /dev/null 2>&1

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer






More information about the ubuntu-users mailing list