commit 0b30f7636947e733bb53cc6c23388fbdc9b7c09e parent 21008338603dc930217aa8b18244478e66820e9d Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 7 Jan 2020 15:26:49 +0100 Fix clearing of cookies Diffstat:
M | .local/bin/surf-clean-cookies | | | 3 | +-- |
M | .local/bin/surf-open.sh | | | 4 | +++- |
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.local/bin/surf-clean-cookies b/.local/bin/surf-clean-cookies @@ -2,6 +2,5 @@ cookiefile="$HOME/.config/surf/cookies.txt" tmpfile="$(mktemp)" -grep -r \ - 'jyskenetbank.dk\|jyskebank.dk\|github.com\|gitlab.com\|macodirect.de\|fotoimpex.com\|skoleintra.dk\|au.dk\|fredmiranda.com\|news.ycombinator.com\|overleaf.com\|microsoftonline.com\|windowsazure.com' \ +egrep 'jyskenetbank\.dk|jyskebank\.dk|github\.com|gitlab\.com|macodirect\.de|fotoimpex\.com|skoleintra\.dk|au\.dk|fredmiranda\.com|news\.ycombinator\.com|overleaf\.com|microsoftonline\.com|windowsazure\.com|backblaze\.com' \ "$cookiefile" > "$tmpfile" && mv "$tmpfile" "$cookiefile" diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -8,7 +8,9 @@ uri="" [ "$#" -gt 0 ] && uri="$1" -command -v surf-clean-cookies >/dev/null 2>&1 && (surf-clean-cookies || :) +if command -v surf-clean-cookies >/dev/null 2>&1; then + surf-clean-cookies +fi runtabbed() { echo "starting tabbed"