dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 9702a89273f503481d3cc1017e8d41ea028256b8
parent f0b31d4f99a0a9263a8c58416fcc82b355a75aa0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed,  1 May 2019 21:03:54 +0200

Clean cookies when opening browser

Diffstat:
M.Xresources | 4++--
Abin/surf-clean-cookies | 7+++++++
Mbin/surf-open.sh | 2++
3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/.Xresources b/.Xresources @@ -5,8 +5,8 @@ Xcursor.size: 16 ! terminal colors ------------------------------------------------------------ ! see https://ciembor.github.io/4bit -*.foreground: #4d4d4c -*.background: #ffffff +*.foreground: #c5c8c6 +*.background: #1d1f21 /* black */ *color0: #434944 diff --git a/bin/surf-clean-cookies b/bin/surf-clean-cookies @@ -0,0 +1,7 @@ +#!/bin/sh +cookiefile="$HOME/.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' \ + "$cookiefile" > "$tmpfile" && mv "$tmpfile" "$cookiefile" diff --git a/bin/surf-open.sh b/bin/surf-open.sh @@ -8,6 +8,8 @@ uri="" [ "$#" -gt 0 ] && uri="$1" +command -v surf-clean-cookies >/dev/null 2>&1 && (surf-clean-cookies || :) + runtabbed() { echo "starting tabbed" tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null &