Skip to content

Instantly share code, notes, and snippets.

@huhuhang
Created June 30, 2019 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huhuhang/e08e7ab5124d6c3e048c76bb7624f088 to your computer and use it in GitHub Desktop.
Save huhuhang/e08e7ab5124d6c3e048c76bb7624f088 to your computer and use it in GitHub Desktop.
一键清除 macOS 迅雷多余组件
echo "→ Clean macOS Thunder?"
read -r -p "[Y/n] " input
case $input in
[yY][eE][sS]|[yY])
cd /Applications/Thunder.app/Contents/PlugIns/
rm -rf advertising.xlplugin
rm -rf featuredpage.xlplugin
rm -rf softmanager.xlplugin
rm -rf livestream.xlplugin
rm -rf feedback.xlplugin
rm -rf iOSThunder.xlplugin
rm -rf xlbrowser.xlplugin
rm -rf xlplayer.xlplugin
rm -rf diagnostic.xlplugin
rm -rf viptips.xlplugin
rm -rf bbassistant.xlplugin
rm -rf browserhelper.xlplugin
echo "Done."
;;
[nN][oO]|[nN])
echo "Exit."
;;
*)
echo "Invalid input..."
exit 1
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment