From 1298bc1493c29174c1868d9b2a89c404fc1de74b Mon Sep 17 00:00:00 2001 From: void Date: Thu, 20 Jun 2024 14:33:53 +0000 Subject: [PATCH] Add hydro-uninstaller.sh --- hydro-uninstaller.sh | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 hydro-uninstaller.sh diff --git a/hydro-uninstaller.sh b/hydro-uninstaller.sh new file mode 100644 index 0000000..5b54aa9 --- /dev/null +++ b/hydro-uninstaller.sh @@ -0,0 +1,84 @@ +# hey gang + +main() { + clear + echo "\033[1;33mWarning\033[0m: This is an \033[1;31munofficial\033[0m application created by @2killq." + sleep 1 + echo "Exit & Delete: Press 1" + echo "Continue: Press any key" + + read -n 1 -s user_input + + if [ "$user_input" == "1" ]; then + echo "Deleting Hydrogen Uninstaller" + rm -rf hydro-uninstaller.sh + exit 0 + else + echo "Continuing..." + fi + + clear + + echo """ +██╗ ██╗██╗ ██╗██████╗ ██████╗ ██████╗ ██████╗ ███████╗███╗ ██╗ +██║ ██║╚██╗ ██╔╝██╔══██╗██╔══██╗██╔═══██╗██╔════╝ ██╔════╝████╗ ██║ +███████║ ╚████╔╝ ██║ ██║██████╔╝██║ ██║██║ ███╗█████╗ ██╔██╗ ██║ +██╔══██║ ╚██╔╝ ██║ ██║██╔══██╗██║ ██║██║ ██║██╔══╝ ██║╚██╗██║ +██║ ██║ ██║ ██████╔╝██║ ██║╚██████╔╝╚██████╔╝███████╗██║ ╚████║ +╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ + Unofficial Uninstaller - Built by 2killq + """ + + if [ -d "/Applications/Hydrogen.app" ]; then + echo "[-] Removing /Applications/Hydrogen.app..." + rm -rf "/Applications/Hydrogen.app" + else + echo "[!] Hydrogen Application not found!" + fi + + if [ -d "/Users/$USER/Hydrogen" ]; then + echo "[-] Removing /Users/$USER/Hydrogen..." + rm -rf "/Users/$USER/Hydrogen" + else + echo "[!] Hydrogen Folder not found!" + fi + + if [ -d "/Applications/Roblox.app" ]; then + echo "[-] Removing /Applications/Roblox.app..." + rm -rf "/Applications/Roblox.app" + else + echo "[!] Roblox app not found!" + fi + + echo "[+] Installing jq (Helper Tool)" + cd /tmp + + curl -sL -o jq "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-amd64" + chmod +x ./jq + + echo "[+] Downloading Latest Roblox..." + + [ -f ./RobloxPlayer.zip ] && rm ./RobloxPlayer.zip + + local version=$(curl -s "https://clientsettingscdn.roblox.com/v2/client-version/MacPlayer" | ./jq -r ".clientVersionUpload") + + curl -s "http://setup.rbxcdn.com/mac/$version-RobloxPlayer.zip" -o "./RobloxPlayer.zip" + + echo "[-] Removing jq (Helper Tool)" + rm -rf ./jq + + echo "[+] Installing Latest Roblox..." + + unzip -qo "./RobloxPlayer.zip" + mv ./RobloxPlayer.app /Applications/Roblox.app + rm ./RobloxPlayer.zip + echo "[+] Uninstalled Hydrogen for macOS. Thanks for using Hydrogen!" + echo "[+] Script by @2killq" + echo "[-] Removing Hydro Uninstaller" + cd + rm -rf hydro-uninstaller.sh + + exit +} + +main