citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit d6abee205b032d7063fc6ef9b285510c4707f142
parent bc670a4366b6ef7d79c0e7a6ce64e8f94fd5ea75
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 23 Feb 2021 09:53:07 -0800

bin/plainweb: use w3m instead of pandoc

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mbin/plainweb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/plainweb b/bin/plainweb @@ -11,7 +11,7 @@ HURL="/tmp/$(sha256sum <<<"$1" | awk '{print $1}').txt" OUT=${2:-$HURL} if [ ! -f "$HURL" ]; then - curl -H "$USER_AGENT" -sL "$1" | sed 's,googletagmanager.com,google.com,g' | pandoc -f html -t plain - -o "$HURL" + w3m -header "$USER_AGENT" -dump "$1" > "$HURL" fi exec lessr "$HURL"