Last active
December 23, 2018 11:22
-
-
Save nikoheikkila/4894e7c6d3906e8b787e3fb331483142 to your computer and use it in GitHub Desktop.
Reset Vivaldi browser to fresh state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
# USAGE | |
# | |
# 1. Close Vivaldi | |
# 2. Run this script | |
# 3. Start Vivaldi again | |
# 4. Enjoy the fresh experience | |
# | |
# TIP: Use Vivaldi Sync to quickly restore your personal data after reset. | |
if [[ $(uname -s) != "Darwin" ]]; then | |
echo "Only macOS supported in this script." | |
exit 1 | |
fi | |
echo "Clearing Vivaldi files..." | |
rm -rf "$HOME/Library/Caches/com.vivaldi.Vivaldi" | |
rm -rf "$HOME/Library/Caches/Vivaldi" | |
rm -rf "$HOME/Library/Saved Application State/com.vivaldi.Vivaldi.savedState" | |
rm -rf "$HOME/Library/Application Support/Vivaldi" | |
rm -rf "$HOME/Library/Preferences/com.vivaldi.Vivaldi.plist" | |
echo "Done. Restart your browser." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment