3.2 KiB
3.2 KiB
firefox-link
A sane default Firefox profile
- Comes with uBlock Origin
- Telemetry/error reporting disabled
- Yahoo/Bing search removed, Google set to default
- New tab page "Enhanced" mode disabled
Installation
Mac
- In a terminal, run
NAME=$RANDOM
if command -v wget 2>&1 >/dev/null; then
wget https://austenwares.com/gogs/stonewareslord/firefox-link/archive/master.tar.gz -O /tmp/firefox-link.tar.gz
elif command -v curl 2>&1 >/dev/null; then
curl https://austenwares.com/gogs/stonewareslord/firefox-link/archive/master.tar.gz -o /tmp/firefox-link.tar.gz
else
echo "Can't find curl or wget"
return 2
fi
mkdir -p "$HOME/Library/Application Support/Firefox/Profiles/$NAME"
cd "$HOME/Library/Application Support/Firefox/Profiles/$NAME"
tar xvf /tmp/firefox-link.tar.gz
egrep -q '\[Profile\d+\]' "$HOME/Library/Application Support/Firefox/profiles.ini"
if (( $? == 0 )); then
printf "\n[Profile$(expr 1 + $(cat "$HOME/Library/Application Support/Firefox/profiles.ini" | egrep '\[Profile\d+\]' | tail -n1 | sed -e 's/\[Profile//' -e 's/\]//'))]\nName=firefox-link\nIsRelative=1\nPath=Profiles/$NAME">>"$HOME/Library/Application Support/Firefox/profiles.ini"
else
mkdir -p "$HOME/Library/Application Support/Firefox/"
printf "\n[Profile0]\nName=firefox-link\nIsRelative=1\nPath=Profiles/$NAME">>"$HOME/Library/Application Support/Firefox/profiles.ini"
fi
'/Applications/Firefox.app/Contents/MacOS/firefox' -p
Linux
- In a terminal, run
NAME=$RANDOM
if command -v wget 2>&1 >/dev/null; then
wget https://austenwares.com/gogs/stonewareslord/firefox-link/archive/master.tar.gz -O /tmp/firefox-link.tar.gz
elif command -v curl 2>&1 >/dev/null; then
curl https://austenwares.com/gogs/stonewareslord/firefox-link/archive/master.tar.gz -o /tmp/firefox-link.tar.gz
else
echo "Can't find curl or wget"
return 2
fi
mkdir -p ~/.mozilla/firefox/$NAME
cd ~/.mozilla/firefox/$NAME
tar xvf /tmp/firefox-link.tar.gz
grep -qP '\[Profile\d+\]' ~/.mozilla/firefox/profiles.ini 2>&1 >/dev/null
if (( $? == 0 )); then
printf "\n[Profile$(expr 1 + $(cat ~/.mozilla/firefox/profiles.ini | grep -P '\[Profile\d+\]' ~/.mozilla/firefox/profiles.ini | tail -n1 | sed -e 's/\[Profile//' -e 's/\]//'))]\nName=firefox-link\nIsRelative=1\nPath=$NAME">>~/.mozilla/firefox/profiles.ini
else
mkdir -p ~/.mozilla/firefox
printf "\n[Profile0]\nName=firefox-link\nIsRelative=1\nPath=$NAME">>~/.mozilla/firefox/profiles.ini
fi
if command -v firefox 2>&1 /dev/null; then
firefox -p
else
firefox-bin -p
fi
Windows
- In powershell, run
md $env:APPDATA\Mozilla\Firefox\Profiles
curl -outf "$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip" https://austenwares.com/gogs/stonewareslord/firefox-link/archive/master.zip
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip", "$env:APPDATA\Mozilla\Firefox\Profiles\firefox-link")
del "$env:APPDATA\Mozilla\Firefox\Profiles\tmp.zip"
echo > "$env:APPDATA\Mozilla\Firefox\profiles.ini"
[General]
StartWithLastProfile=1
[Profile0]
Name=firefox-link
IsRelative=1
Path=Profiles/firefox-link
Default=1
& "C:\Program Files\Mozilla Firefox\firefox.exe"