dotfiles/.bashrc.d/99-archivebox.sh
2025-01-24 10:01:12 +01:00

12 lines
421 B
Bash
Executable file

#! /bin/bash
function archivebox {
local ARGS=()
if [ "$1" == "add" ] ; then
shift
ARGS+=("add" "--extract" "singlefile,title,favicon")
fi
ARGS+=("$@")
CHROME_USER_DATA_DIR="$HOME/.config/archivebox/chrome_profile" CHROME_USER_AGENT='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' TIMEOUT=120 command archivebox "${ARGS[@]}"
}