Archived
2
0
This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
neko-custom/.docker/files/firefox/test

38 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-01-30 20:19:57 +13:00
#!/bin/bash
2020-01-31 13:42:05 +13:00
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
2020-01-30 20:19:57 +13:00
#
# firefox
2020-01-31 13:42:05 +13:00
cp $DIR/neko.js /usr/lib/firefox-esr/mozilla.cfg
2020-01-30 20:19:57 +13:00
#rm -f /usr/lib/firefox-esr/mozilla.cfg
2020-01-31 13:42:05 +13:00
cp $DIR/autoconfig.js /usr/lib/firefox-esr/defaults/pref/autoconfig.js
2020-01-30 20:19:57 +13:00
#rm -f /usr/lib/firefox-esr/defaults/pref/autoconfig.js
#https://github.com/mozilla/policy-templates
2020-01-31 13:42:05 +13:00
cp $DIR/policies.json /usr/lib/firefox-esr/distribution/policies.json
2020-01-30 20:19:57 +13:00
#rm -f /usr/lib/firefox-esr/distribution/policies.json
2020-01-31 13:42:05 +13:00
cp $DIR/supervisord.conf /etc/neko/supervisord/firefox.conf
2020-01-30 20:19:57 +13:00
#rm -f /etc/neko/supervisord/firefox.conf
#
# install extensions
mkdir -p /usr/lib/firefox/distribution/extensions
2020-01-31 13:42:05 +13:00
#
# uBlock
2020-01-30 20:19:57 +13:00
if [ ! -f /usr/lib/firefox/distribution/extensions/uBlock0@raymondhill.net.xpi ]; then
2020-01-31 13:42:05 +13:00
wget -O /usr/lib/firefox/distribution/extensions/uBlock0@raymondhill.net.xpi https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/addon-607454-latest.xpi
2020-01-30 20:19:57 +13:00
fi
2020-01-31 13:42:05 +13:00
#
2020-01-30 20:19:57 +13:00
# nordvpnproxy
if [ ! -f /usr/lib/firefox/distribution/extensions/nordvpnproxy@nordvpn.com.xpi ]; then
2020-01-31 13:42:05 +13:00
wget -O /usr/lib/firefox/distribution/extensions/nordvpnproxy@nordvpn.com.xpi https://addons.mozilla.org/firefox/downloads/latest/nordvpn-proxy-extension/latest.xpi
2020-01-30 20:19:57 +13:00
fi
#
# clean up old sessions
rm -rf /home/$USER/.mozilla