mirror of https://git.wownero.com/qvqc/nebula.git
drop ded user.js junks
This commit is contained in:
parent
7cb4822831
commit
ab74a178a2
|
@ -1,10 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Version=1.0
|
|
||||||
Encoding=UTF-8
|
|
||||||
Name=Script
|
|
||||||
Type=Application
|
|
||||||
Exec=/home/anon/.local/bin/hardFox.sh
|
|
||||||
Terminal=false
|
|
||||||
StartupNotify=false
|
|
||||||
Hidden=false
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cd ~/.mozilla/firefox/
|
|
||||||
if [[ $(grep '\[Profile[^0]\]' profiles.ini) ]]
|
|
||||||
then PROFPATH=$(grep -E '^\[Profile|^Path|^Default' profiles.ini | grep -1 '^Default=1' | grep '^Path' | cut -c6-)
|
|
||||||
else PROFPATH=$(grep 'Path=' profiles.ini | sed 's/^Path=//')
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $PROFPATH
|
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
#!/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
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue