nebula/include/etc/skel/.local/bin/hardFox.sh

25 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
rm -r ~/.mozilla/
notify-send 'Securing Firefox' 'One momment while we harden User.js' --icon=applications-internet -t 11000
timeout 10 firefox --headless --offline
#get new firefox profile
profilePath=$(/home/anon/.local/bin/findFirefoxProfile.sh)
## Get current User.js file from pyllyukko/user.js !!FIXTHIS, SHIP LOCAL FORK!!
##wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 0 https://raw.githubusercontent.com/pyllyukko/user.js/master/user.js -O /tmp/user.js
## Disable JavaScript
echo user_pref\(\"javascript.enabled\", false\)\; >> ~/.local/share/user.js
## Set Homepage
echo user_pref\(\"browser.startup.homepage\", \"https://check.torproject.org\|https://browserleaks.com\"\)\; >> ~/.local/share/user.js
## Enable Onions
sed -i '/Onion/ s/true/false/' ~/.local/share/user.js
## Copy modified user.js to firefox profile directory
mv ~/.local/share/user.js ~/.mozilla/firefox/$profilePath/user.js
notify-send 'Firefox is ready!' 'Enjoy your javascript free experience.' --icon=face-cool -t 6000