From 58b032a527d9c1c7ea7ecb6c06cd3639f94a8110 Mon Sep 17 00:00:00 2001 From: DanielSGH Date: Thu, 9 Feb 2023 23:10:20 +0000 Subject: [PATCH] add uninstall option --- install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install.sh b/install.sh index 01710ab..f2ac0a6 100644 --- a/install.sh +++ b/install.sh @@ -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..."