mirror of
https://git.wownero.com/qvqc/nebula.git
synced 2024-08-15 03:24:06 +00:00
25 lines
1 KiB
Bash
25 lines
1 KiB
Bash
|
#!/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
|
||
|
|