Skip to content

Instantly share code, notes, and snippets.

@arjan-s
Created January 5, 2021 08:36
Show Gist options
  • Save arjan-s/9a836a7d0c49f9b9ff8e4095c95ed562 to your computer and use it in GitHub Desktop.
Save arjan-s/9a836a7d0c49f9b9ff8e4095c95ed562 to your computer and use it in GitHub Desktop.
qutebrowser start script
#!/bin/bash
qutebrowser
wait
echo "DELETE FROM cookies WHERE host_key NOT LIKE '%github.com%' AND host_key NOT LIKE '%web.whatsapp.com%';" | sqlite3 ~/.local/share/qutebrowser/webengine/Cookies
echo "DELETE FROM History; DELETE FROM CompletionHistory;" | sqlite3 ~/.local/share/qutebrowser/history.sqlite
rm ~/.local/share/qutebrowser/cmd-history
rm -rf ~/.cache/qutebrowser/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment