2016-05-23 18:27:22 -04:00
|
|
|
# firefox-link
|
2016-05-23 22:42:19 -04:00
|
|
|
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
|
2016-05-23 18:27:22 -04:00
|
|
|
|
2016-05-23 22:42:19 -04:00
|
|
|
## Installation
|
|
|
|
|
2016-05-24 02:29:02 -04:00
|
|
|
### Mac
|
2016-06-05 10:30:20 -04:00
|
|
|
- In a terminal, run
|
|
|
|
|
2016-05-23 19:20:36 -04:00
|
|
|
```bash
|
2016-05-23 19:30:56 -04:00
|
|
|
NAME=$RANDOM
|
2016-05-26 02:03:21 -04:00
|
|
|
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
|
2016-05-24 02:29:02 -04:00
|
|
|
egrep -q '\[Profile\d+\]' "$HOME/Library/Application Support/Firefox/profiles.ini"
|
2016-05-23 21:57:02 -04:00
|
|
|
if (( $? == 0 )); then
|
2016-05-23 21:59:48 -04:00
|
|
|
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"
|
2016-05-23 21:57:02 -04:00
|
|
|
else
|
2016-05-23 21:59:48 -04:00
|
|
|
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"
|
2016-05-23 21:57:02 -04:00
|
|
|
fi
|
2016-05-23 19:33:14 -04:00
|
|
|
'/Applications/Firefox.app/Contents/MacOS/firefox' -p
|
2016-05-23 18:27:22 -04:00
|
|
|
```
|
2016-05-24 02:29:02 -04:00
|
|
|
### Linux
|
2016-06-05 10:30:20 -04:00
|
|
|
- In a terminal, run
|
|
|
|
|
2016-05-24 02:29:02 -04:00
|
|
|
```bash
|
|
|
|
NAME=$RANDOM
|
2016-05-26 02:03:21 -04:00
|
|
|
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
|
2016-05-24 02:29:02 -04:00
|
|
|
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
|
|
|
|
```
|
2016-06-05 10:30:20 -04:00
|
|
|
|
|
|
|
### 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
|
2016-06-05 11:04:11 -04:00
|
|
|
|
2016-06-05 10:30:20 -04:00
|
|
|
& "C:\Program Files\Mozilla Firefox\firefox.exe"
|
|
|
|
```
|