add uninstall option

This commit is contained in:
DanielSGH 2023-02-09 23:10:20 +00:00
parent 5c028ce258
commit 58b032a527

View file

@ -4,6 +4,17 @@
GITHUB_REPO="https://github.com/bmFtZQ/edge-frfox.git"
PROFILE_ROOTDIR=~/.mozilla/firefox/$(grep Default= ~/.mozilla/firefox/installs.ini | tail -1 | cut -c 9-);
# Check if issued `./installer.sh uninstall`
if [[ $1 == "uninstall" ]]; then
rm -rfi $PROFILE_ROOTDIR/chrome;
echo "uninstalling...";
echo "user_pref(\"toolkit.legacyUserProfileCustomizations.stylesheets\", false);" >> $PROFILE_ROOTDIR/prefs.js;
echo "user_pref(\"svg.context-properties.content.enabled\", false);" >> $PROFILE_ROOTDIR/prefs.js;
echo "user_pref(\"layout.css.color-mix.enabled\", false);" >> $PROFILE_ROOTDIR/prefs.js;
exit 0;
fi
echo "Detecting if firefox is installed on your system..."
if [ ! -f /usr/bin/firefox ] || { [ ! -f /usr/lib/firefox/firefox ]; }; then
echo "ERROR: firefox not found..."