automate/firefox-speedup.example

43 lines
1.0 KiB
Plaintext

# browser.safebrowsing.remoteLookups unset
# browser.cache.use_new_backend 1
# network.http.pipelining.ssl true
# network.http.pipelining true
# network.http.proxy.pipelining true
# network.http.pipelining.maxrequests 120
# network.dns.disableIPv6 true
# browser.safebrowsing.malware.enabled false
# browser.cache.disk.enable false
# browser.cache.memory.enable true
# browser.cache.memory.capacity integer 204800
PROFILE_NAME=ybokieeb
cd ${HOME}/.mozilla/firefox/
cp -a ${PROFILE_NAME}.default/ profile.bac
rm -rf profile_name.default/*
echo "tmpfs /home/${USER}/.mozilla/firefox/${PROFILE_NAME}.default tmpfs size=128M,user,exec,uid=1000,gid=1000 0 0" >> /etc/fstab
sudo mount -a
cd ${HOME}/.mozilla/firefox/
cp -a profile.bac/* ${PROFILE_NAME}.default/
echo > /usr/local/bin/ff_profile_sync < "EOF"
#!/bin/sh
cd /home/${USER}/.mozilla/firefox/
if test -d *.default;then
if test -d profile.bac;then
rsync -a --delete *.default/ profile.bac/
fi;fi
EOF
(crontab -l 2>/dev/null; echo "*/5 * * * * /usr/local/bin/ff_profile_sync > /dev/null 2>&1") | crontab -