Created
November 30, 2019 11:21
-
-
Save hrik2001/294f938e9001b3191c49bd0cf8d3b4db to your computer and use it in GitHub Desktop.
a small script written in BASH script to clean Chrome and Firefox cookies for linux
This file contains hidden or 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
echo "BrowserClean Script by Rik" | |
echo "================================================================================" | |
echo "Deleting Chrome cache and cookies"; | |
mkdir ~/.clean; | |
cp ~/.config/google-chrome/Default/Bookmarks ~/.clean; | |
rm -rf ~/.config/google-chrome/Default/; | |
mkdir ~/.config/google-chrome/Default; | |
cp ~/.clean/Bookmarks ~/.config/google-chrome/Default; | |
cp ~/.mozilla/firefox/*.default/places.sqlite ~/.clean; | |
rm -rf ~/.cache/google-chrome | |
echo "Deleting Firefox Cookies" ; | |
rm ~/.mozilla/firefox/*.default/cookies.sqlite; | |
echo "Deleting Firefox History"; | |
rm ~/.mozilla/firefox/*.default/*.sqlite; | |
cp ~/.clean/places.sqlite ~/.mozilla/firefox/*.default; | |
rm -rf ~/.clean; | |
echo "For Firefox History won't be deleted as history and bookmarks are stored at the same place"; | |
echo "Have a good one"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment