1
0
Fork 0

Add support for paste.debian.net to readwwwlog

This commit is contained in:
tastytea 2022-04-25 15:08:48 +02:00
parent 80933c33f5
commit a2f2c4c6bc
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,9 @@ for url in ${urls}; do
elif [[ ${url} =~ 'bpa\.st' && ! ${url} =~ '/download-archive/' ]]; then
local id=${url##*/}
url="https://bpa.st/download-archive/${id}"
elif [[ ${url} =~ 'paste\.debian\.net' && ! ${url} =~ '/plain/' ]]; then
local id=${url##*/}
url="https://paste.debian.net/plain/${id}"
fi
if [[ ${TERMINAL} =~ "alacritty|xfce4-terminal" ]]; then

View File

@ -31,6 +31,7 @@ local -A assignments=(
'^https?://(www\.)?(dpaste|pastebin|irccloud)\.com/' "readwwwlog"
'^https?://bpa\.st/' "readwwwlog"
'^https?://sprunge\.us/' "readwwwlog"
'^https?://paste\.debian\.net/' "readwwwlog"
'\.(webm|png|jpe?g|gif|svg|bmp|xcf)(\?.+)?$' "openwwwimg"
'(^magnet:|\.torrent$)' "transmission-remote-gtk"
)