Skip to content

Instantly share code, notes, and snippets.

@nikoheikkila
Last active December 23, 2018 11:22
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 nikoheikkila/4894e7c6d3906e8b787e3fb331483142 to your computer and use it in GitHub Desktop.
Save nikoheikkila/4894e7c6d3906e8b787e3fb331483142 to your computer and use it in GitHub Desktop.
Reset Vivaldi browser to fresh state
#!/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