mirror of
https://github.com/andwati/kget-capture.git
synced 2026-12-05 18:38:51 +00:00
initial commit
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
INSTALL_DIR="$HOME/.local/share/kget-capture"
|
||||
|
||||
BROWSER_DIRS=(
|
||||
"$HOME/.config/google-chrome"
|
||||
"$HOME/.config/chromium"
|
||||
"$HOME/.config/BraveSoftware/Brave-Browser"
|
||||
"$HOME/.config/vivaldi"
|
||||
"$HOME/.config/microsoft-edge"
|
||||
)
|
||||
|
||||
for config_dir in "${BROWSER_DIRS[@]}"; do
|
||||
manifest="$config_dir/NativeMessagingHosts/com.kget_capture.host.json"
|
||||
if [ -f "$manifest" ]; then
|
||||
rm -f "$manifest"
|
||||
echo "Removed $manifest"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -d "$INSTALL_DIR" ]; then
|
||||
rm -rf "$INSTALL_DIR"
|
||||
echo "Removed $INSTALL_DIR"
|
||||
fi
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Uninstall complete.
|
||||
|
||||
Note: this does not remove the unpacked extension itself. Remove it manually
|
||||
via chrome://extensions (or the equivalent for your browser).
|
||||
EOF
|
||||
Reference in New Issue
Block a user